From 965e44ab2e3cca8d884f63389710a27aedae3f71 Mon Sep 17 00:00:00 2001 From: freepdk Date: Wed, 13 Apr 2022 13:00:56 +0200 Subject: [PATCH] auto create release on tag push (tags needs to start with "v") --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 745c49e..93e23e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,8 @@ name: 'build' on: push: - branches: - - '*' - - 'feature/**' + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' workflow_dispatch: @@ -29,7 +28,6 @@ jobs: run: bash ./.github/auto_build.sh - name: 'release assets' - if: startsWith( github.ref, 'refs/tags/releases/') uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }}