File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 24
24
run : |
25
25
git config --global http.postBuffer 50000000
26
26
git config --global https.postBuffer 50000000
27
- - uses : rust-lang/simpleinfra/github-actions/static-websites@master
27
+ - name : Upload book artifacts
28
+ uses : upload-pages-artifact@v3
28
29
with :
29
- deploy_dir : book
30
- github_token : ${{ secrets.GITHUB_TOKEN }}
30
+ path : book
31
31
if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
32
+
33
+ # Deploy is run as a separate job as it needs elevated permissions
34
+ deploy :
35
+ name : deploy
36
+ runs-on : ubuntu-latest
37
+ needs : test # the `test` job uploads the pages artifact
38
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
39
+ permissions :
40
+ pages : write
41
+ id-token : write
42
+ environment :
43
+ name : github-pages
44
+ url : ${{steps.deployment.outputs.page_url}}
45
+ steps :
46
+ - name : Deploy to GitHub Pages
47
+ uses : actions/deploy-pages@v4
48
+ id : deployment
You can’t perform that action at this time.
0 commit comments