Skip to content

Commit

Permalink
Move search indexing to the right place
Browse files Browse the repository at this point in the history
So older releases are properly indexed and show up in the site search

Signed-off-by: Robert Fekete <[email protected]>
  • Loading branch information
fekete-robert committed Aug 28, 2023
1 parent beea353 commit 19ef5d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ jobs:
- name: Build
run: hugo --environment production --baseURL ${{ steps.pages.outputs.base_url }}/

- name: Pagefind search index
run: npm_config_yes=true npx pagefind --bundle-dir pagefind --source ./public

# - name: Upload artifact
# uses: actions/upload-pages-artifact@64bcae551a7b18bcb9a09042ddf1960979799187 # v1.0.8
# with:
Expand All @@ -87,6 +84,10 @@ jobs:
rm -rf tmp/gh-pages/js
rm -rf tmp/gh-pages/_print
rsync -a public/ tmp/gh-pages/
- name: Pagefind search index
run: npm_config_yes=true npx pagefind --bundle-dir pagefind --source ./tmp/gh-pages

- name: Commit & Push changes
uses: actions-js/push@master
with:
Expand Down

0 comments on commit 19ef5d4

Please sign in to comment.