Skip to content

Commit 58ab7ce

Browse files
committed
ci: update Github workflow
1 parent 8fc9f2e commit 58ab7ce

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/doc.yaml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,18 @@ on:
99
jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
pages: write
14+
id-token: write
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
1218
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
19+
- uses: actions/checkout@v6
20+
- name: Build docs
21+
run: cargo doc --all --no-deps
22+
- uses: actions/upload-pages-artifact@v4
1523
with:
16-
toolchain: stable
17-
profile: minimal
18-
override: true
19-
components: rustfmt, rust-src
20-
- uses: actions-rs/cargo@v1
21-
with:
22-
command: doc
23-
args: --all --no-deps
24-
- uses: peaceiris/actions-gh-pages@v3
25-
if: ${{ github.ref == 'refs/heads/main' }}
26-
with:
27-
github_token: ${{ secrets.GITHUB_TOKEN }}
28-
publish_dir: ./target/doc
24+
path: target/doc
25+
- id: deployment
26+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)