Skip to content

Commit

Permalink
fix(ci): release after semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino authored and jaromil committed Sep 29, 2024
1 parent b0177e1 commit fd3c404
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,15 @@ jobs:
name: 🤖 Semantic release
needs: [musl-test]
runs-on: ubuntu-latest
outputs:
new_release_published: ${{ steps.semantic-release.outputs.new_release_published }}
new_release_version: ${{ steps.semantic-release.outputs.new_release_version }}
if: ${{ github.ref_name == 'main' && github.event_name == 'push' }}
steps:
- uses: actions/checkout@v4
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic-release
with:
extra_plugins: |
@semantic-release/changelog
Expand All @@ -93,7 +97,7 @@ jobs:
name: 🐧 Musl Linux binary release build
runs-on: ubuntu-latest
needs: [semantic-release]
if: ${{ needs.semantic-release.outputs.new_release_published == 'True' }}
if: ${{ needs.semantic-release.outputs.new_release_published == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -149,7 +153,7 @@ jobs:
name: 🧻 Remove tag on fail
needs: [semantic-release, musl-release]
runs-on: ubuntu-latest
if: ${{ (failure() || cancelled()) && needs.semantic-release.outputs.new_release_published == 'True' }}
if: ${{ (failure() || cancelled()) && needs.semantic-release.outputs.new_release_published == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit fd3c404

Please sign in to comment.