Skip to content

Commit

Permalink
prepend 'v' to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinspace committed Jun 26, 2024
1 parent c9982fc commit 31d81b6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,21 @@ jobs:
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git tag -a "${{ env.software_version }}" -m "Version ${{ env.software_version }}"
git push origin "${{ env.software_version }}"
echo "tag_name=v${{ env.software_version }}" >> $GITHUB_ENV
echo "tag_name=${{ env.tag_name }}" >> $GITHUB_OUTPUT
git tag -a "${{ env.tag_name }}" -m "Version ${{ env.software_version }}"
git push origin "${{ env.tag_name }}"
- name: Create GH release
if: |
steps.alpha.conclusion == 'success' ||
steps.rc.conclusion == 'success' ||
steps.release.conclusion == 'success'
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
name: ${{ env.software_version }}
generateReleaseNotes: ${{ steps.release.conclusion == 'success' }}
name: ${{ env.tag_name }}
prerelease: ${{ steps.alpha.conclusion == 'success' || steps.rc.conclusion == 'success'}}
tag: ${{ env.software_version }}
tag: ${{ env.tag_name }}

docker:
name: Build & Publish Docker Image
Expand Down

0 comments on commit 31d81b6

Please sign in to comment.