1 # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2 # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
5 branches: [main, master]
7 branches: [main, master]
18 runs-on: ubuntu-latest
19 # Only restrict concurrency for non-PR jobs
21 group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
23 GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
27 - uses: actions/checkout@v4
29 - uses: r-lib/actions/setup-pandoc@v2
31 - uses: r-lib/actions/setup-r@v2
35 - uses: r-lib/actions/setup-r-dependencies@v2
37 extra-packages: any::pkgdown, local::.
41 run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
44 - name: Deploy to GitHub pages 🚀
45 if: github.event_name != 'pull_request'
46 uses: JamesIves/github-pages-deploy-action@v4.5.0