Skip to content

Commit c0eb521

Browse files
committed
Migrate away from the static-websites action
1 parent c9e2e7a commit c0eb521

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,23 @@ jobs:
2222
- run: bash ci/spellcheck.sh list
2323
- run: mdbook build
2424
- run: cargo test --all --manifest-path=./examples/Cargo.toml --target-dir ./target
25-
- uses: rust-lang/simpleinfra/github-actions/static-websites@master
25+
- uses: actions/upload-pages-artifact@v3
2626
with:
27-
deploy_dir: book/html
28-
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
path: book/html
2928
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
29+
30+
deploy:
31+
name: deploy
32+
needs: test
33+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'rust-lang'
34+
permissions:
35+
pages: write
36+
id-token: write
37+
environment:
38+
name: github-pages
39+
url: ${{steps.deployment.outputs.page_url}}
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
uses: actions/deploy-pages@v4
44+
id: deployment

0 commit comments

Comments
 (0)