From 354bc7c90fc8bd9fab4dcc79e1c31446ab7e8711 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 28 Nov 2023 23:08:50 +0800 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4af958625b..a0a01c2de5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,17 +1,13 @@ name: Release on: - workflow_run: - workflows: ["Run Tests"] - types: - - completed + push: tags: - "v*" workflow_dispatch: jobs: on-success: - if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -98,10 +94,10 @@ jobs: done - name: Release - - uses: ncipollo/release-action@v1 - with: - artifacts: "dist/*.zip" - generateReleaseNotes: true + uses: ncipollo/release-action@v1 + with: + artifacts: "dist/*.zip" + generateReleaseNotes: true - name: Purge jsdelivr cache run: |