Skip to content

Commit

Permalink
More GHA updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Nov 24, 2022
1 parent 061beba commit d41500f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/bookdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
schedule:
# run every day at 11 PM
- cron: '0 23 * * *'
workflow_dispatch:

name: bookdown

Expand All @@ -17,6 +18,8 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
isExtPR: ${{ github.event.pull_request.head.repo.fork == true }}
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
steps:
- uses: actions/checkout@v3

Expand All @@ -29,7 +32,7 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2

- name: Cache bookdown results
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: _bookdown_files
key: bookdown-${{ hashFiles('**/*Rmd') }}
Expand All @@ -41,7 +44,8 @@ jobs:
git config --local user.email "[email protected]"
- name: Build site
run: Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)'
run: bookdown::render_book("index.Rmd", quiet = TRUE)
shell: Rscript {0}

- name: Deploy to Netlify
if: contains(env.isExtPR, 'false')
Expand Down

0 comments on commit d41500f

Please sign in to comment.