Skip to content

Commit

Permalink
fix: attempt to fix search github action
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenFluin committed Nov 3, 2023
1 parent 1f6540e commit c568507
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/update-search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Make sure we have node and dependencies
run: npm i
- name: Process and send index updates to Algolia
run: npm run build-index
env:
ALGOLIA_KEY: ${{ secrets.ALGOLIA_KEY }}
run: npm run generate-search-index
4 changes: 2 additions & 2 deletions generate-search-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function walk(dir) {

const fileContents = fs.readFileSync(filepath, "utf-8");

console.log("about to parse", filepath);
// console.log("about to parse", filepath);

// Get rid of frontmatter
let data, content;
Expand Down Expand Up @@ -114,7 +114,7 @@ function walk(dir) {

walk("src/pages");

console.dir(sitemap, { maxArrayLength: null });
//console.dir(sitemap, { maxArrayLength: null });

try {
index
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"build-index": "node ./generate-search-index.js"
"generate-search-index": "node ./generate-search-index.js"
},
"dependencies": {
"@astrojs/markdown-remark": "^3.2.0",
Expand Down

1 comment on commit c568507

@vercel
Copy link

@vercel vercel bot commented on c568507 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.