From 0dacfa88f2cf91e2329b77cbdb03ae0118251e02 Mon Sep 17 00:00:00 2001 From: zmzimpl Date: Tue, 21 Nov 2023 21:25:05 +0800 Subject: [PATCH] change release workflow --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e7f3a4..ef2362c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,8 @@ on: workflow_dispatch: push: + tags: + - '*' branches: - main - 'renovate/**' @@ -35,7 +37,7 @@ jobs: permissions: contents: write # Allows this job to create releases with: - dry-run: ${{ github.event_name != 'push' || github.ref_name != 'main' }} + dry-run: ${{ github.event_name != 'push' || (github.ref_type != 'tag' && github.ref_name != 'main') }} needs: [] uses: ./.github/workflows/release.yml