File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,16 @@ jobs:
31
31
- name : Build site
32
32
run : Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)'
33
33
34
+
35
+ - name : Install npm
36
+ uses : actions/setup-node@v1
37
+
34
38
- name : Deploy to Netlify
35
39
if : contains(env.isExtPR, 'false')
36
- id : netlify-deploy
37
-
38
- with :
39
- publish-dir : ' ./_book'
40
- production-branch : master
41
- github-token : ${{ secrets.GITHUB_TOKEN }}
42
- deploy-message :
43
- ' Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})'
44
- enable-pull-request-comment : false
45
- enable-commit-comment : false
40
+ # NETLIFY_AUTH_TOKEN added in the repo's secrets
46
41
env :
47
42
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
48
43
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
49
- timeout-minutes : 1
44
+ run : |
45
+ npm install netlify-cli -g
46
+ netlify deploy --prod --dir _book
You can’t perform that action at this time.
0 commit comments