Skip to content

Commit e6e045c

Browse files
authored
Merge pull request #92 from CAD97/CAD97-patch-1
Update rustdoc.yaml
2 parents 5aa272b + eb0c3d3 commit e6e045c

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/rustdoc.yaml

+7-15
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,25 @@ on:
44
branches:
55
- master
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
cargo-doc:
912
runs-on: ubuntu-latest
10-
env:
11-
CARGO_INCREMENTAL: 0
12-
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Install beta toolchain
18-
uses: actions-rs/toolchain@v1
19-
with:
20-
toolchain: beta
21-
profile: minimal
22-
override: true
18+
uses: dtolnay/rust-toolchain@beta
2319

2420
- name: Build docs
25-
uses: actions-rs/cargo@v1
26-
with:
27-
command: doc
28-
args: --no-deps
21+
run: cargo doc --no-deps
2922

3023
- name: Deploy docs
31-
uses: peaceiris/actions-gh-pages@v3
24+
uses: peaceiris/actions-gh-pages@v4
3225
with:
33-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
3426
github_token: ${{ github.token }}
3527
publish_dir: ./target/doc
3628
force_orphan: true

0 commit comments

Comments
 (0)