Skip to content

Commit

Permalink
ci: github actions on semver branches and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
glichtner committed Feb 16, 2024
1 parent ab7d034 commit e2f845a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/fhir-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ on:
- main
- master
- staging
- 'v[0-9]+.[0-9]+*' # Approximates v[0-9]+.[0-9]+.* pattern
tags:
- 'v[0-9]+.[0-9]+*' # Trigger for semantic version tags (e.g., v1.2, v1.2.3)
- 'v[0-9]+.[0-9]+.*-*' # Additional pattern for pre-release versions (e.g., v1.2.3-snapshot)
pull_request:
branches:
- main
- master
- staging

# Allows you to run this workflow manually from the Actions tab
- 'v[0-9]+.[0-9]+*' # Approximates v[0-9]+.[0-9]+.* pattern
workflow_dispatch:

env:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ig-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ on:
- main
- master
- staging
- 'v[0-9]+.[0-9]+*' # Approximates v[0-9]+.[0-9]+.* pattern
tags:
- 'v[0-9]+.[0-9]+*' # Trigger for semantic version tags (e.g., v1.2, v1.2.3)
- 'v[0-9]+.[0-9]+.*-*' # Additional pattern for pre-release versions (e.g., v1.2.3-snapshot)
pull_request:
branches:
- main
- master
- staging
- 'v[0-9]+.[0-9]+*' # Approximates v[0-9]+.[0-9]+.* pattern

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -60,7 +65,7 @@ jobs:

# upload binaries to release
- name: Upload binaries to release
if: (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
if: startsWith(github.ref, 'refs/tags/v')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e2f845a

Please sign in to comment.