From b70fe6e28b93d3ce485d7f13adb561473b106586 Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Wed, 7 Jun 2023 21:07:59 +0800 Subject: [PATCH] fix: path problem --- .github/workflows/docker.yml | 9 ++--- .../workflows/create-release-draft.yaml | 39 ------------------- 2 files changed, 4 insertions(+), 44 deletions(-) delete mode 100644 webui/.github/workflows/create-release-draft.yaml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1ad92fb5..5da86bec 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -39,9 +39,6 @@ jobs: with: node-version: latest - - name: CD into path - run: cd webui - - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install @@ -50,13 +47,15 @@ jobs: run_install: true - name: Build - run: pnpm build && zip -r dist.zip dist + run: | + cd webui + pnpm build && zip -r dist.zip dist - name: Upload artifact uses: actions/upload-artifact@v3 with: name: dist - path: dist.zip + path: webui/dist.zip draft-release: diff --git a/webui/.github/workflows/create-release-draft.yaml b/webui/.github/workflows/create-release-draft.yaml deleted file mode 100644 index 329d89aa..00000000 --- a/webui/.github/workflows/create-release-draft.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Create Release Draft - -on: - push: - tags: - - 'v*.*.*' - -permissions: - contents: write - discussions: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: latest - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: latest - run_install: true - - - name: Build - run: pnpm build && zip -r dist.zip dist - - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - draft: true - files: dist.zip