Skip to content

Commit 9775630

Browse files
committed
Use netlify CLI
1 parent f05eddd commit 9775630

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Diff for: .github/workflows/bookdown.yaml

+8-11
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,16 @@ jobs:
3131
- name: Build site
3232
run: Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)'
3333

34+
35+
- name: Install npm
36+
uses: actions/setup-node@v1
37+
3438
- name: Deploy to Netlify
3539
if: contains(env.isExtPR, 'false')
36-
id: netlify-deploy
37-
uses: nwtgck/[email protected]
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
4641
env:
4742
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
4843
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

0 commit comments

Comments
 (0)