Skip to content

Commit b4506c8

Browse files
committed
Update workflow to prevent marking it as my activity
1 parent 081dc0c commit b4506c8

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/pkgdown.yaml

+18-11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ name: pkgdown
1515

1616
jobs:
1717
pkgdown:
18+
name: Render-dashboard
1819
runs-on: ubuntu-latest
1920
# Only restrict concurrency for non-PR jobs
2021
concurrency:
@@ -38,14 +39,20 @@ jobs:
3839
- name: Build site
3940
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
4041
shell: Rscript {0}
41-
- name: git config
42-
run: |
43-
git config --global user.email '[email protected]'
44-
git config --global user.name 'gh-pages committer'
45-
- name: Deploy to GitHub pages 🚀
46-
if: github.event_name != 'pull_request'
47-
uses: JamesIves/[email protected]
48-
with:
49-
clean: false
50-
branch: gh-pages
51-
folder: docs
42+
# Deployment job
43+
deploy:
44+
if: github.event_name != 'pull_request'
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: pkgdown
50+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
51+
permissions:
52+
pages: write # to deploy to Pages
53+
id-token: write # to verify the deployment originates from an appropriate source
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4
58+

0 commit comments

Comments
 (0)