Skip to content

Commit

Permalink
create releases on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast committed Sep 19, 2024
1 parent 98d6f23 commit 92aa2bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- main
- github-actions
tags:
- 'v*.*.*' # Trigger on tags that follow semantic versioning (e.g., v1.0.0)
pull_request:
branches:
- main
Expand Down Expand Up @@ -142,7 +144,8 @@ jobs:
create-release:
needs: build-cmake
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/github-actions')
if: startsWith(github.ref, 'refs/tags/v') # Trigger only on tags
# if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/github-actions')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 92aa2bb

Please sign in to comment.