diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index fa02184..bbbef5d 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -18,21 +18,21 @@ jobs: OPENJUDGE_PASSWORD: ${{ secrets.OPENJUDGE_PASSWORD }} OPENJUDGE_HOST: rjsj.openjudge.cn steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get data - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: pku-software/homework-answer-data token: ${{ secrets.DATA_REPO_PAT }} path: "./data" - uses: pnpm/action-setup@v2 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "18" cache: "pnpm" - run: pnpm install --frozen-lockfile - run: pnpm build - - uses: actions/upload-pages-artifact@v1 + - uses: actions/upload-pages-artifact@v3 with: path: "./docs/.vuepress/dist" deploy: @@ -42,5 +42,5 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/deploy-pages@v1 + - uses: actions/deploy-pages@v4 id: deployment