From f7a3acde976ba8d5d04dd07088ad774f1b565dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E?= <908087098@qq.com> Date: Tue, 18 Jun 2024 17:38:50 +0800 Subject: [PATCH] Update static.yml --- .github/workflows/static.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 0ba82305..ae1ef1de 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -31,13 +31,30 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2.2.2 + with: + version: latest + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: latest + cache: 'pnpm' + + - name: Install dependencies + run: pnpm i + + - name: Lint + run: pnpm run docs + - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: # Upload entire repository - path: '.' + path: './public' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4