Skip to content

Commit

Permalink
release.yml - fix release job -> issue with tag_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pulimet committed Sep 22, 2024
1 parent 10e0e3a commit a8b26ce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
echo "IS_PRE_RELEASE=${{ github.event.inputs.isPreRelease }}" >> $GITHUB_ENV
echo "ALPHA_VERSION=${{ github.event.inputs.alphaVersion }}" >> $GITHUB_ENV
echo "ALPHA_VERSION=-${{ github.event.inputs.alphaVersion }}" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" = "push" ]; then
TAG_NAME=${{ github.ref_name }}
VERSION=${TAG_NAME#v} # Removes the 'v' prefix from the tag name to get the version
Expand Down Expand Up @@ -157,17 +157,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Uses the GitHub token to authenticate
with:
tag_name: v${{ env.VERSION }}-${{ env.ALPHA_VERSION }} # Tag name for the release, using the version input
release_name: Release v${{ env.VERSION }} - ${{ env.ALPHA_VERSION }} # Name of the release, using the version input
tag_name: v${{ env.VERSION }}${{ env.ALPHA_VERSION }} # Tag name for the release, using the version input
release_name: Release v${{ env.VERSION }}${{ env.ALPHA_VERSION }} # Name of the release, using the version input
draft: false # Specifies that the release is not a draft
prerelease: ${{ env.IS_PRE_RELEASE }}

- name: Upload Release Asset DMG
id: upload_release_dmg
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ env.VERSION }}-${{ env.ALPHA_VERSION }} # Tag name for the release, using the version input
name: Release v${{ env.VERSION }} - ${{ env.ALPHA_VERSION }} # Name of the release, using the version input
tag_name: v${{ env.VERSION }}${{ env.ALPHA_VERSION }} # Tag name for the release, using the version input
name: Release v${{ env.VERSION }}${{ env.ALPHA_VERSION }} # Name of the release, using the version input
files: ./ADBugger-${{ env.VERSION }}.dmg # Path to the DMG file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Uses the GitHub token to authenticate
Expand All @@ -176,8 +176,8 @@ jobs:
id: upload_release_msi
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ env.VERSION }}-${{ env.ALPHA_VERSION }} # Tag name for the release, using the version input
name: Release v${{ env.VERSION }} - ${{ env.ALPHA_VERSION }} # Name of the release, using the version input
tag_name: v${{ env.VERSION }}${{ env.ALPHA_VERSION }} # Tag name for the release, using the version input
name: Release v${{ env.VERSION }}${{ env.ALPHA_VERSION }} # Name of the release, using the version input
files: ./ADBugger-${{ env.VERSION }}.msi # Path to the MSI file
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Uses the GitHub token to authenticate
Expand Down

0 comments on commit a8b26ce

Please sign in to comment.