File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 7
7
update :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
+ - name : Check out repository code
11
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
10
12
- name : Make sure we have node and dependencies
11
13
run : npm i
12
14
- name : Process and send index updates to Algolia
13
- run : npm run build-index
15
+ env :
16
+ ALGOLIA_KEY : ${{ secrets.ALGOLIA_KEY }}
17
+ run : npm run generate-search-index
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function walk(dir) {
47
47
48
48
const fileContents = fs . readFileSync ( filepath , "utf-8" ) ;
49
49
50
- console . log ( "about to parse" , filepath ) ;
50
+ // console.log("about to parse", filepath);
51
51
52
52
// Get rid of frontmatter
53
53
let data , content ;
@@ -114,7 +114,7 @@ function walk(dir) {
114
114
115
115
walk ( "src/pages" ) ;
116
116
117
- console . dir ( sitemap , { maxArrayLength : null } ) ;
117
+ // console.dir(sitemap, { maxArrayLength: null });
118
118
119
119
try {
120
120
index
Original file line number Diff line number Diff line change 12
12
"build" : " astro build" ,
13
13
"preview" : " astro preview" ,
14
14
"astro" : " astro" ,
15
- "build -index" : " node ./generate-search-index.js"
15
+ "generate-search -index" : " node ./generate-search-index.js"
16
16
},
17
17
"dependencies" : {
18
18
"@astrojs/markdown-remark" : " ^3.2.0" ,
You can’t perform that action at this time.
0 commit comments