Skip to content

Commit

Permalink
update action to release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed Sep 1, 2021
1 parent 4671738 commit 82446f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 82446f2

Please sign in to comment.