Skip to content

Commit a45a0ce

Browse files
authored
Merge pull request #1717 from Kobzol/ci-upload-pages
Upload GitHub Pages using the standard action
2 parents ba74932 + 40436e3 commit a45a0ce

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
if: github.repository == 'rust-lang/team'
1010
permissions:
1111
id-token: write
12+
pages: write
1213
steps:
1314

1415
- uses: actions/checkout@main
@@ -57,14 +58,18 @@ jobs:
5758
name: team-api-output
5859
path: build
5960

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+
6070
- 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 }}
6771
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
72+
uses: actions/deploy-pages@v4
6873

6974
- name: Configure AWS credentials
7075
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)