Skip to content

Commit

Permalink
fix: only release on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsch318 committed Mar 11, 2024
1 parent 4b4bf89 commit 06725de
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: Docker Build
name: release

on:
push:
branches:
- "master"
tags:
- "v*.*.*"
pull_request:
branches:
- "master"

jobs:
changelog:
Expand All @@ -30,6 +25,7 @@ jobs:
env:
OUTPUT: CHANGELOG.md
- name: Uploade release changes
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.git-cliff.outputs.content }}
Expand All @@ -44,7 +40,7 @@ jobs:
git commit -m "Update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git master
build:
build-push:
needs: changelog
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 06725de

Please sign in to comment.