Skip to content

Commit

Permalink
ci(ssg): 🐛 fix document workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Dec 27, 2024
1 parent 2ce9234 commit 8e4070b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: 🧪 Document
on:
push:
branches:
- main
- feat/ssg
pull_request:
branches:
Expand All @@ -18,11 +19,11 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: hecrj/setup-rust-action@v2
- uses: hecrj/setup-rust-action@v2.0.1
with:
rust-version: nightly

- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2

- name: Update libssl
run: |
Expand All @@ -37,24 +38,23 @@ jobs:
echo '<html><head><meta http-equiv="refresh" content="0; url=/ssg/"></head><body></body></html>' > ./target/doc/index.html
- name: Deploy
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4.5.0
with:
name: documentation
path: target/doc
if-no-files-found: error
retention-days: 1

- name: Write CNAME file
run: echo 'docs.shokunin.one' > ./target/doc/CNAME
run: echo 'doc.shokunin.one' > ./target/doc/CNAME

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
publish_branch: gh-pages
cname: true
clean: true
commit_message: Deploy documentation at ${{ github.sha }}
commit_user_name: github-actions
commit_user_email: actions@users.noreply.github.com
user_name: github-actions
user_email: actions@users.noreply.github.com

0 comments on commit 8e4070b

Please sign in to comment.