From 726d29135521432ba1ad9a01f098258e4e27248f Mon Sep 17 00:00:00 2001 From: lwd-temp <26019675+lwd-temp@users.noreply.github.com> Date: Sun, 10 Jul 2022 13:52:37 +0800 Subject: [PATCH] Only release when there's a tag --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32ca186..a422728 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,10 +2,9 @@ name: Release Packed Application on: push: - branches: [ main ] - pull_request: - branches: [ main ] - + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: build: @@ -35,6 +34,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: + tag_name: ${{ github.ref }} release_name: ${{ github.ref }} body: | ${{ github.ref }} View README for more information.