File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 9
9
if : github.repository == 'rust-lang/team'
10
10
permissions :
11
11
id-token : write
12
+ pages : write
12
13
steps :
13
14
14
15
- uses : actions/checkout@main
@@ -57,14 +58,18 @@ jobs:
57
58
name : team-api-output
58
59
path : build
59
60
61
+ - name : Disable Jekyll
62
+ run : touch build/.nojekyll
63
+
64
+ - name : Upload GitHub pages artifact
65
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
66
+ uses : actions/upload-pages-artifact@v3
67
+ with :
68
+ path : build
69
+
60
70
- name : Deploy to GitHub Pages
61
- run : |
62
- touch build/.nojekyll
63
- curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
64
- (cd build && /tmp/deploy)
65
- env :
66
- GITHUB_DEPLOY_KEY : ${{ secrets.GITHUB_DEPLOY_KEY }}
67
71
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
72
+ uses : actions/deploy-pages@v4
68
73
69
74
- name : Configure AWS credentials
70
75
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
You can’t perform that action at this time.
0 commit comments