Skip to content

Commit 8e4070b

Browse files
ci(ssg): 🐛 fix document workflow
1 parent 2ce9234 commit 8e4070b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/document.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: 🧪 Document
33
on:
44
push:
55
branches:
6+
- main
67
- feat/ssg
78
pull_request:
89
branches:
@@ -18,11 +19,11 @@ jobs:
1819
concurrency:
1920
group: ${{ github.workflow }}-${{ github.ref }}
2021
steps:
21-
- uses: hecrj/setup-rust-action@v2
22+
- uses: hecrj/setup-rust-action@v2.0.1
2223
with:
2324
rust-version: nightly
2425

25-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v4.2.2
2627

2728
- name: Update libssl
2829
run: |
@@ -37,24 +38,23 @@ jobs:
3738
echo '<html><head><meta http-equiv="refresh" content="0; url=/ssg/"></head><body></body></html>' > ./target/doc/index.html
3839
3940
- name: Deploy
40-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@v4.5.0
4142
with:
4243
name: documentation
4344
path: target/doc
4445
if-no-files-found: error
4546
retention-days: 1
4647

4748
- name: Write CNAME file
48-
run: echo 'docs.shokunin.one' > ./target/doc/CNAME
49+
run: echo 'doc.shokunin.one' > ./target/doc/CNAME
4950

5051
- name: Deploy to GitHub Pages
51-
uses: peaceiris/actions-gh-pages@v4
52+
uses: peaceiris/actions-gh-pages@v4.0.0
5253
with:
5354
github_token: ${{ secrets.GITHUB_TOKEN }}
5455
publish_dir: ./target/doc
5556
publish_branch: gh-pages
5657
cname: true
57-
clean: true
5858
commit_message: Deploy documentation at ${{ github.sha }}
59-
commit_user_name: github-actions
60-
commit_user_email: actions@users.noreply.github.com
59+
user_name: github-actions
60+
user_email: actions@users.noreply.github.com

0 commit comments

Comments
 (0)