File tree 3 files changed +219
-79
lines changed
3 files changed +219
-79
lines changed Original file line number Diff line number Diff line change 7
7
branches : [main, master]
8
8
workflow_dispatch :
9
9
10
- name : bookdown
10
+ name : bookdown.yaml
11
11
12
12
jobs :
13
- bookdown :
13
+ build :
14
14
runs-on : ubuntu-latest
15
15
# Only restrict concurrency for non-PR jobs
16
16
concurrency :
@@ -39,19 +39,25 @@ jobs:
39
39
run : bookdown::render_book("index.Rmd", quiet = TRUE)
40
40
shell : Rscript {0}
41
41
42
- - name : Deploy to Netlify
43
- if : contains(env.isExtPR, 'false')
44
- id : netlify-deploy
45
-
42
+ - name : Upload website artifact
43
+ if : ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
44
+ uses : actions/upload-pages-artifact@v3
46
45
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 : 1
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
Original file line number Diff line number Diff line change 14
14
_main. *
15
15
adv-r-source.zip
16
16
crc
17
+
18
+ /.quarto /
You can’t perform that action at this time.
0 commit comments