Skip to content

Commit c8c686f

Browse files
committed
update GHA deployment
1 parent c2ccb47 commit c8c686f

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

.github/workflows/build_deploy.yaml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
name: build_deploy
88

99
jobs:
10-
build_deploy:
10+
build:
1111
runs-on: ubuntu-latest
1212
container: bioconductor/bioconductor_docker:devel
1313

@@ -72,16 +72,22 @@ jobs:
7272
run: |
7373
cp -R docs _book/
7474
75-
# deploy needs rsync? Seems so.
76-
- name: Install deploy dependencies
77-
if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
78-
run: |
79-
apt-get update && apt-get -y install rsync
80-
81-
- name: Deploy 🚀
82-
if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
83-
uses: JamesIves/[email protected]
75+
- name: Upload bookdown artifacts
76+
uses: actions/upload-pages-artifact@v3
8477
with:
85-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
86-
BRANCH: gh-pages
87-
FOLDER: _book
78+
path: _book
79+
80+
deploy:
81+
needs: build
82+
permissions:
83+
contents: write
84+
pages: write
85+
id-token: write
86+
runs-on: ubuntu-latest
87+
88+
steps:
89+
- name: Deploy to GitHub Pages
90+
if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
91+
id: deployment
92+
uses: actions/deploy-pages@v4
93+

0 commit comments

Comments
 (0)