Skip to content

Commit

Permalink
release workflow: strip project name from version tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Jan 16, 2025
1 parent b912e31 commit 3250f21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
id: extract_release_variables
shell: bash
run: |
echo "tag_name=$(find build/distributions/ControllerBuddy-*.zip -maxdepth 1 -print0 | xargs -0 -I filename basename -s .zip filename | sed s/-windows-x86-64//)" >> $GITHUB_OUTPUT
echo "tag_name=$(find build/distributions/ControllerBuddy-*.zip -maxdepth 1 -print0 | xargs -0 -I filename basename -s .zip filename | sed 's/^ControllerBuddy-//;s/windows-x86-64-//')" >> $GITHUB_OUTPUT
echo "archive_path=$(find build/distributions/ControllerBuddy-*.zip -maxdepth 1 -print0)" >> $GITHUB_OUTPUT
- name: Tag Commit
uses: tvdias/[email protected]
Expand All @@ -59,6 +59,7 @@ jobs:
id: release
uses: softprops/action-gh-release@v2
with:
name: ControllerBuddy-${{ steps.extract_release_variables.outputs.tag_name }}
tag_name: ${{ steps.extract_release_variables.outputs.tag_name }}
draft: false
prerelease: false
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
- name: Extract Release Variables
id: extract_release_variables
run: |
echo "tag_name=$(find build/distributions/ControllerBuddy-*.tgz -maxdepth 1 -print0 | xargs -0 -I filename basename -s .tgz filename | sed s/-linux-x86-64//)" >> $GITHUB_OUTPUT
echo "tag_name=$(find build/distributions/ControllerBuddy-*.tgz -maxdepth 1 -print0 | xargs -0 -I filename basename -s .tgz filename | sed 's/^ControllerBuddy-//;s/linux-x86-64-//')" >> $GITHUB_OUTPUT
echo "archive_path=$(find build/distributions/ControllerBuddy-*.tgz -maxdepth 1 -print0)" >> $GITHUB_OUTPUT
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v6
Expand All @@ -109,6 +110,7 @@ jobs:
id: release
uses: softprops/action-gh-release@v2
with:
name: ControllerBuddy-${{ steps.extract_release_variables.outputs.tag_name }}
tag_name: ${{ steps.extract_release_variables.outputs.tag_name }}
draft: false
prerelease: false
Expand Down

0 comments on commit 3250f21

Please sign in to comment.