diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 01d5b073..ab52ecb0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -57,6 +57,9 @@ jobs: - name: Build run: hugo --environment production + - name: Pagefind search index + run: npm_config_yes=true npx pagefind --bundle-dir pagefind --source ./public + - name: Deploy with rclone uses: AnimMouse/setup-rclone@v1 with: diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index f1713c58..6aa7228d 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -52,6 +52,9 @@ jobs: - name: Build run: hugo --environment staging --baseURL ${{ steps.pages.outputs.base_url }}/ + - name: Pagefind search index + run: npm_config_yes=true npx pagefind --bundle-dir pagefind --source ./public + # Build hugo output with manpages environment, run scripts, copy output manpages to public so it gets uploaded - name: Build manpage environment run: hugo --environment manpage --baseURL ${{ steps.pages.outputs.base_url }}/ --destination manpages