Skip to content

Commit ae33a6d

Browse files
committed
fix CI docs workflow
1 parent 5dbb587 commit ae33a6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-docs.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build-sphinx:
2222
runs-on: ubuntu-latest
2323
needs: [cache-deps]
24+
permissions:
25+
contents: write
2426
steps:
2527
- uses: actions/checkout@v4
2628
- uses: actions/setup-python@v5
@@ -32,7 +34,7 @@ jobs:
3234
run: pip install -r docs/requirements.txt
3335

3436
- name: Cache .cargo locked resources
35-
uses: actions/cache@v4
37+
uses: actions/cache/restore@v4
3638
with:
3739
path: ~/.cargo
3840
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
@@ -62,7 +64,7 @@ jobs:
6264
- uses: actions/checkout@v4
6365
- run: rustup update --no-self-update
6466
- name: Cache .cargo locked resources
65-
uses: actions/cache@v4
67+
uses: actions/cache/restore@v4
6668
with:
6769
path: ~/.cargo
6870
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

0 commit comments

Comments
 (0)