File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change 77 release :
88 types : [published]
99
10+ permissions :
11+ contents : write
12+ pages : write
13+ id-token : write
14+
1015env :
1116 CARGO_UNSTABLE_EDITION2024 : true
1217 RUSTUP_TOOLCHAIN : nightly
1520 build-and-publish :
1621 name : Build and publish
1722 runs-on : ubuntu-latest
23+ permissions :
24+ contents : write
25+ pages : write
26+ id-token : write
1827 steps :
1928 - uses : actions/checkout@v3
2029 with :
@@ -78,19 +87,26 @@ jobs:
7887 command : doc
7988 args : --no-deps --all-features
8089
90+ - name : Setup Pages
91+ uses : actions/configure-pages@v4
92+
93+ - name : Upload artifact
94+ uses : actions/upload-pages-artifact@v3
95+ with :
96+ path : ' ./target/doc'
97+
8198 - name : Deploy to GitHub Pages
82- if : env.GITHUB_TOKEN != ''
83- uses : peaceiris/ actions-gh- pages@v3
99+ id : deployment
100+ uses : actions/deploy- pages@v4
84101 with :
85- github_token : ${{ secrets.GITHUB_TOKEN }}
86- publish_dir : ./target/doc
87- env :
88- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102+ token : ${{ secrets.GITHUB_TOKEN }}
89103
90104 build-binaries :
91105 name : Build binaries for ${{ matrix.os }}
92106 runs-on : ${{ matrix.os }}
93107 needs : build-and-publish
108+ permissions :
109+ contents : write
94110 strategy :
95111 matrix :
96112 include :
@@ -172,6 +188,8 @@ jobs:
172188 name : Create GitHub Release
173189 runs-on : ubuntu-latest
174190 needs : build-binaries
191+ permissions :
192+ contents : write
175193 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
176194 steps :
177195 - uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments