Skip to content

Commit 1a40678

Browse files
committed
use actions/deploy-pages
1 parent a1546cd commit 1a40678

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/build_site.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ jobs:
4949
BiocManager::install(c("rcmdcheck", "pkgdown", "covr"), ask = FALSE, update = TRUE)
5050
shell: Rscript {0}
5151

52-
- name: System dependencies
53-
run: |
54-
pip install ghp-import
55-
5652
- name: Check Package
5753
id: rcmdcheck
5854
env:
@@ -73,15 +69,17 @@ jobs:
7369
run: |
7470
PATH=$PATH:$HOME/bin/ Rscript -e 'pkgdown::build_site()'
7571
76-
- name: Install deploy dependencies
77-
run: |
78-
apt-get update
79-
apt-get -y install rsync
72+
deploy:
73+
needs: checkRelease
74+
permissions:
75+
contents: write
76+
pages: write
77+
runs-on: ubuntu-latest
8078

81-
- name: Deploy 🚀
82-
uses: JamesIves/github-pages-deploy-action@v4
83-
with:
84-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
BRANCH: gh-pages # The branch the action should deploy to.
86-
FOLDER: docs # The folder the action should deploy.
79+
steps:
80+
- name: Checkout Repository
81+
uses: actions/checkout@v4
8782

83+
- name: Deploy to GitHub Pages
84+
id: deployment
85+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)