Skip to content

Commit

Permalink
Update release workflow to pick up preview versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Jan 23, 2023
1 parent 22d9d27 commit 530b35c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release
on:
push:
tags: ['[0-9]+.[0-9]+.[0-9]+']
tags: ['[0-9]+.[0-9]+.[0-9]+(-.*)?']
paths-ignore: [ 'docs/**' ]

permissions: write-all
Expand All @@ -21,7 +21,11 @@ jobs:
uses: damienaicheh/[email protected]
- name: Set release version
run: |
RELEASE_VERSION=${MAJOR}.${MINOR}.${PATCH}
if [ "${PRE_RELEASE}" == "" ]; then
RELEASE_VERSION=${MAJOR}.${MINOR}.${PATCH}
else
RELEASE_VERSION=${MAJOR}.${MINOR}.${PATCH}-${PRE_RELEASE}
fi
echo "Release version is $RELEASE_VERSION"
echo "RELEASE_VERSION=$RELEASE_VERSION" >> "$GITHUB_ENV"
- name: Get Changelog Entry
Expand Down

0 comments on commit 530b35c

Please sign in to comment.