diff --git a/.github/.gitignore b/.github/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.github/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yaml similarity index 74% rename from .github/workflows/pkgdown.yml rename to .github/workflows/pkgdown.yaml index efd8e17..ed7650c 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yaml @@ -13,15 +13,16 @@ name: pkgdown jobs: pkgdown: - runs-on: macOS-latest - timeout-minutes: 40 + runs-on: ubuntu-latest # Only restrict concurrency for non-PR jobs concurrency: group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: r-lib/actions/setup-pandoc@v2 @@ -31,18 +32,16 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: r-lib/pkgdown, local::. + extra-packages: any::pkgdown, local::. needs: website - name: Build site - run: | - Sys.setenv("_R_CHECK_CONNECTIONS_LEFT_OPEN_" = "false") - pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) + 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@4.1.4 + uses: JamesIves/github-pages-deploy-action@v4.4.1 with: clean: false branch: gh-pages