Skip to content

Commit

Permalink
Merge pull request #96 from huangjj27/ci-fix-deployment
Browse files Browse the repository at this point in the history
Ci fix deployment
  • Loading branch information
huangjj27 authored Apr 28, 2024
2 parents 868dc0e + 728a81b commit adc6f66
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: zh-CN Translation

on:
push:
branches: zh-CN
branches:
- zh-CN
pull_request:
branches: zh-CN
branches:
- zh-CN

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,7 +15,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install mdbook
uses: actions-rs/[email protected]
with:
Expand All @@ -31,7 +33,7 @@ jobs:
- name: Build mdbook
run: mdbook build && pwd
- name: Cache artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: book
path: ./book
Expand All @@ -42,11 +44,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: book
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./book/html
Expand Down

0 comments on commit adc6f66

Please sign in to comment.