Skip to content

Commit 35ec3af

Browse files
authored
Improve Workflows (#82)
1 parent 0fa238f commit 35ec3af

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
name: ${{ matrix.task.name }}
4343

4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646

4747
- uses: actions-rust-lang/setup-rust-toolchain@v1
4848
with:

.github/workflows/generate-docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
jobs:
1010
doc:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
1216
steps:
1317
- name: Checkout repository
14-
uses: actions/checkout@v3
18+
uses: actions/checkout@v5
1519

1620
- name: Install mdBook
1721
uses: taiki-e/install-action@v2
@@ -22,7 +26,8 @@ jobs:
2226
run: mdbook build docs
2327

2428
- name: Deploy to GitHub Pages
25-
uses: peaceiris/actions-gh-pages@v3
29+
if: github.ref == 'refs/heads/main'
30+
uses: peaceiris/actions-gh-pages@v4
2631
with:
2732
github_token: ${{ secrets.GITHUB_TOKEN }}
2833
publish_dir: ./docs/book

0 commit comments

Comments
 (0)