Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Feb 28, 2024
1 parent fa2f555 commit 90ff7d2
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,8 @@ env:
LANGUAGES: ja

jobs:
index:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: doc.veryl-lang.org

book:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -68,9 +55,26 @@ jobs:
mdbook build -d book/$po_lang
echo "::endgroup::"
done
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: book
path: book/book/

deploy:
needs: book
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download book
uses: actions/download-artifact@v4
with:
name: book
path: public

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book
destination_dir: book
cname: doc.veryl-lang.org

0 comments on commit 90ff7d2

Please sign in to comment.