Skip to content

Commit 5b74ddb

Browse files
committed
update GHA deployment
1 parent 16166ad commit 5b74ddb

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

.github/workflows/build_deploy.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
on:
22
push:
3+
branches:
4+
- devel
35
pull_request:
46
branches:
57
- devel
68

79
name: build_deploy
810

911
jobs:
10-
build_deploy:
12+
build:
1113
runs-on: ubuntu-latest
1214
container: bioconductor/bioconductor_docker:devel
1315

@@ -72,16 +74,22 @@ jobs:
7274
run: |
7375
cp -R docs _book/
7476
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]
77+
- name: Upload bookdown artifacts
78+
uses: actions/upload-pages-artifact@v3
8479
with:
85-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
86-
BRANCH: gh-pages
87-
FOLDER: _book
80+
path: _book
81+
82+
deploy:
83+
needs: build
84+
permissions:
85+
contents: write
86+
pages: write
87+
id-token: write
88+
runs-on: ubuntu-latest
89+
90+
steps:
91+
- name: Deploy to GitHub Pages
92+
if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
93+
id: deployment
94+
uses: actions/deploy-pages@v4
95+

0 commit comments

Comments
 (0)