-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release workflow: strip project name from version tag name
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|