diff --git a/.github/workflows/publish-main.yaml b/.github/workflows/publish-main.yaml index 3ac550810..15843eabe 100644 --- a/.github/workflows/publish-main.yaml +++ b/.github/workflows/publish-main.yaml @@ -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: @@ -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: