From 7426bfcc67c05381e933b3c33edb368ef4eda685 Mon Sep 17 00:00:00 2001 From: texm Date: Tue, 25 Apr 2023 15:40:55 +0800 Subject: [PATCH] fix web action --- .github/workflows/publish-web.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-web.yml b/.github/workflows/publish-web.yml index 7344abf..4579a00 100644 --- a/.github/workflows/publish-web.yml +++ b/.github/workflows/publish-web.yml @@ -19,21 +19,23 @@ concurrency: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./web steps: - uses: actions/checkout@v3 - uses: actions/configure-pages@v1 id: pages - uses: actions/setup-node@v3 - working-directory: ./web with: node-version: 16 cache: 'npm' - - run: npm --prefix web run build + - run: npm run build - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: - path: ./web/build + path: ./build deploy: runs-on: ubuntu-latest