Skip to content

Commit

Permalink
re-init pkgdown gha
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelhabr committed Jan 21, 2024
1 parent 63e94d4 commit 9c9b6d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
15 changes: 7 additions & 8 deletions .github/workflows/pkgdown.yml → .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/[email protected].4
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
Expand Down

0 comments on commit 9c9b6d2

Please sign in to comment.