diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index b17e3049..5d69e801 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -21,8 +21,6 @@ jobs: group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - env: - CTX_API_KEY: ${{ secrets.CTX_API_KEY }} permissions: contents: write steps: @@ -38,11 +36,13 @@ jobs: with: extra-packages: any::pkgdown, local::. needs: website + CTX_API_KEY: ${{ secrets.CTX_API_KEY }} - name: Build site run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) shell: Rscript {0} + - name: Deploy to GitHub pages 🚀 if: github.event_name != 'pull_request' uses: JamesIves/github-pages-deploy-action@v4.5.0