diff --git a/.github/workflows/zh-CN.yml b/.github/workflows/zh-CN.yml index 50bb09ce..5f84d5e0 100644 --- a/.github/workflows/zh-CN.yml +++ b/.github/workflows/zh-CN.yml @@ -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 @@ -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/install@v0.1 with: @@ -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 @@ -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