Skip to content

Commit

Permalink
ci: Constrain release trigger to be semantic (#5151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Nov 24, 2023
1 parent f127d0b commit 1db74f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Release
on:
push:
tags: [ 'v*.*.*' ]
# Only release on supported semantic version tagging e.g. v0.0.1-rc.0
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
permissions:
id-token: write # aws-actions/[email protected]
contents: write # marvinpinto/[email protected]
Expand Down

0 comments on commit 1db74f4

Please sign in to comment.