Skip to content

Commit

Permalink
Update release workflow to include debug variants and streamline arti…
Browse files Browse the repository at this point in the history
…fact uploads
  • Loading branch information
royshil committed Nov 5, 2024
1 parent 605966b commit f7df8f1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,18 @@ jobs:
commit_hash="${GITHUB_SHA:0:9}"
variants=(
'linux'
'macos'
'windows'
'linux-latest-Release'
'macos-latest-Release'
'windows-latest-Release'
'linux-latest-Debug'
'macos-latest-Debug'
'windows-latest-Debug'
)
mkdir -p "${{ github.workspace }}/uploads"
for variant in "${variants[@]}"; do
candidates=(*-${variant}/@(*))
for candidate in "${candidates[@]}"; do
cp "${candidate}" "${{ github.workspace }}/uploads/moonshine-cpp-${variant}-${GITHUB_REF_NAME}.${candidate##*.}"
done
zip "${{ github.workspace }}/uploads/moonshine-cpp-${variant}-${GITHUB_REF_NAME}.zip" "${variant}"
done
- name: Upload Release Artifacts 📤
Expand Down

0 comments on commit f7df8f1

Please sign in to comment.