Skip to content

Commit

Permalink
Fix gh action release
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-menjivar committed Dec 31, 2024
1 parent b62d3fa commit 8103a31
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,15 @@ jobs:
run: |
mkdir -p artifacts
for target in ${{ join(matrix.targets, ' ') }}; do
target_name=$(echo $target | tr '-' '_')
cp "target/$target/release/sm" "artifacts/secrets-machine_${target_name}"
# Remove vendor names ('-apple' and '-unknown') from the target name
target_name=$(echo $target | sed 's/-apple//; s/-unknown//')
# Remove platform names ('-gnu', 'musl') from the target name
target_name=$(echo $target_name | sed 's/-gnu//; s/-musl//')
echo "target_name: $target_name"
cp "target/$target/release/sm" "artifacts/secrets-machine-${target_name}"
done
- name: Release
Expand All @@ -67,7 +74,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
files: artifacts/secrets-machine_*
files: artifacts/secrets-machine*

- name: Clean up
run: rm -rf artifacts

0 comments on commit 8103a31

Please sign in to comment.