Skip to content

Commit

Permalink
fix: don't upload release assets if no release is tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 28, 2022
1 parent c128c11 commit 112f52d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
semantic-release:
name: 🤖 Semantic release
runs-on: ubuntu-latest
if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
# if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
outputs:
release: ${{ steps.tag_release.outputs.release }}
version: ${{ steps.tag_release.outputs.version }}
Expand Down Expand Up @@ -120,16 +120,19 @@ jobs:
cd build && ninja
- name: Upload artifacts from clang build
uses: actions/upload-artifact@v3
if: ${{ needs.semantic-release.outputs.release == 'True' }}
with:
name: release-filters-linux-amd64
path: build/src/filter/**/*.so
- name: Upload artifacts from clang build
uses: actions/upload-artifact@v3
if: ${{ needs.semantic-release.outputs.release == 'True' }}
with:
name: release-mixers-linux-amd64
path: build/src/mixer*/**/*.so
- name: Upload artifacts from clang build
uses: actions/upload-artifact@v3
if: ${{ needs.semantic-release.outputs.release == 'True' }}
with:
name: release-generators-linux-amd64
path: build/src/generator/**/*.so
Expand Down

0 comments on commit 112f52d

Please sign in to comment.