File tree Expand file tree Collapse file tree 1 file changed +21
-13
lines changed
Expand file tree Collapse file tree 1 file changed +21
-13
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
3+ branches :
4+ - devel
35 pull_request :
46 branches :
57 - devel
68
79name : build_deploy
810
911jobs :
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- 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+
You can’t perform that action at this time.
0 commit comments