From 82446f2bb95fd251a143e6418747786f5cd7a7df Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Wed, 1 Sep 2021 21:03:23 +0100 Subject: [PATCH] update action to release on tag --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7447d5..c08cdb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,7 @@ jobs: GITVERSION_MAJORMINORPATCH: ${{ steps.gitversion.outputs.majorMinorPatch }} - name: Build Changelog 📝 - if: ${{ github.ref == 'refs/heads/main' }} + if: startsWith(github.ref, 'refs/tags/v') id: build_changelog uses: mikepenz/release-changelog-builder-action@v1 with: @@ -77,7 +77,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release 🚀 - if: ${{ github.ref == 'refs/heads/main' }} + if: startsWith(github.ref, 'refs/tags/v') id: create_release uses: ncipollo/release-action@v1 with: