@@ -12,18 +12,15 @@ jobs:
12
12
13
13
runs-on : ubuntu-latest
14
14
permissions :
15
+ # Needed to write a comment on the PR
15
16
pull-requests : write
16
- contents : write
17
+ # Needed to read the PR branch
18
+ contents : read
17
19
steps :
18
- - name : Get PR number
19
- id : pr
20
- run : |
21
- PR_NUM=$(echo "${{ github.event.issue.number }}")
22
- echo "number=$PR_NUM" >> $GITHUB_OUTPUT
23
-
24
20
- uses : actions/checkout@v4
25
21
with :
26
- ref : refs/pull/${{ steps.pr.outputs.number }}/head
22
+ # Checkout the PR branch
23
+ ref : refs/pull/${{ github.event.issue.number }}/head
27
24
28
25
- uses : r-lib/actions/setup-pandoc@v2
29
26
@@ -43,13 +40,26 @@ jobs:
43
40
- name : Deploy to Netlify
44
41
45
42
with :
46
- publish-dir : ' ./docs'
47
- production-deploy : false
43
+ # Standard config
48
44
github-token : ${{ secrets.GITHUB_TOKEN }}
49
45
deploy-message : " Deploy from GitHub Actions"
46
+ # 'docs/' is the default directory for pkgdown::build_site()
47
+ # we add 'dev' because _pkgdown.yml has 'development: mode: devel'
48
+ publish-dir : ' ./docs/dev'
49
+ # Development deploys only
50
+ production-deploy : false
51
+ # Enable pull request comment (default)
52
+ enable-pull-request-comment : true
53
+ # Overwrite the pull request comment with updated link (default)
54
+ overwrites-pull-request-comment : true
55
+ # Don't deploy to GitHub
50
56
enable-github-deployment : false
57
+ # Don't update the status of the commit
51
58
enable-commit-status : false
59
+ # Don't comment on the commit
60
+ enable-commit-comment : false
52
61
env :
62
+ # Netlify credentials (currently from Dmitry's account)
53
63
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
54
64
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
55
- timeout-minutes : 1
65
+ timeout-minutes : 1
0 commit comments