Skip to content

Commit

Permalink
Release improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
  • Loading branch information
rylev committed Aug 1, 2024
1 parent ea1c001 commit 387b7f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,23 @@ jobs:
if: startsWith(github.ref, 'refs/tags/tests-v')
shell: bash
run: |
echo "RELEASE_VERSION=$(echo ${{ github.ref_name }} | cut -c 7-)" >> $GITHUB_ENV
echo "RELEASE_NOTE='The ${{ env.RELEASE_VERSION }} release of the conformance tests.'" >> $GITHUB_ENV
RELEASE_VERSION=$(echo ${{ github.ref_name }} | cut -c 7-)
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
echo "RELEASE_NOTE=The $RELEASE_VERSION release of the conformance tests." >> $GITHUB_ENV
- name: set the release version (main)
if: github.ref == 'refs/heads/main'
shell: bash
run: |
echo "RELEASE_VERSION=canary" >> $GITHUB_ENV
echo "RELEASE_NOTE='This is a "canary" release of the most recent commits on our main branch. Canary is **not stable**.'" >> $GITHUB_ENV
echo "RELEASE_NOTE=This is a "canary" release of the most recent commits on our main branch. Canary is **not stable**." >> $GITHUB_ENV
- name: Recreate canary release
uses: ncipollo/release-action@v1.14.0
with:
tag: "${{ env.RELEASE_VERSION }}"
allowUpdates: true
prerelease: true
prerelease: ${{ env.RELEASE_VERSION == 'canary' }}
artifacts: "tests.tar.gz"
commit: ${{ github.sha }}
body: "${{ env.RELEASE_NOTE }}"

0 comments on commit 387b7f3

Please sign in to comment.