File tree Expand file tree Collapse file tree 1 file changed +22
-16
lines changed
Expand file tree Collapse file tree 1 file changed +22
-16
lines changed Original file line number Diff line number Diff line change 77 branches : [main, master]
88 schedule :
99 # run every day at 11:05 PM Pacific
10- - cron : ' 5 7 * * *'
10+ - cron : " 5 7 * * *"
1111 workflow_dispatch :
1212
1313name : build-book
@@ -39,19 +39,25 @@ jobs:
3939 - name : Build book
4040 run : Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)'
4141
42- - name : Deploy to Netlify
43- if : contains(env.isExtPR, 'false')
44- id : netlify-deploy
45- uses : nwtgck/actions-netlify@v1.1
42+ - name : Upload website artifact
43+ if : ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
44+ uses : actions/upload-pages-artifact@v3
4645 with :
47- publish-dir : ' ./_book'
48- production-branch : master
49- github-token : ${{ secrets.GITHUB_TOKEN }}
50- deploy-message :
51- ' Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})'
52- enable-pull-request-comment : false
53- enable-commit-comment : false
54- env :
55- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
56- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
57- timeout-minutes : 5
46+ path : " _book"
47+
48+ deploy :
49+ needs : build
50+
51+ permissions :
52+ pages : write # to deploy to Pages
53+ id-token : write # to verify the deployment originates from an appropriate source
54+
55+ environment :
56+ name : github-pages
57+ url : ${{ steps.deployment.outputs.page_url }}
58+
59+ runs-on : ubuntu-latest
60+ steps :
61+ - name : Deploy to GitHub Pages
62+ id : deployment
63+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments