Skip to content

Commit

Permalink
feat(actions): only execute the last two steps for tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Jul 21, 2022
1 parent 32e035a commit 31c75a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
run: go test -race ./...

- name: Build the binaries
if: startsWith(github.ref, 'refs/tags/')
run: |
./dists/make-release.sh -v ${{ steps.tag_name.outputs.TAG_NAME }}
- name: Release the new version
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
body: Please refer to the [CHANGELOG.md](https://github.com/Scalingo/cli/blob/${{ steps.tag_name.outputs.TAG_NAME }}/CHANGELOG.md) file.
Expand Down

0 comments on commit 31c75a8

Please sign in to comment.