Skip to content

Commit

Permalink
fix: tar unpacking and creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Dec 11, 2024
1 parent 3ba6103 commit 1e49339
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,18 +271,19 @@ jobs:
# Unpack binaries, required for setup-pixi
- name: Unpack binaries tar
run: |
set -e pipefail # fail if any command fails
mkdir -p unpacked-artifacts
for artifact in target/distrib/pixi-*.tar.gz; do
echo artifact: $artifact
# Extract the base name without the extension
base_name=$(basename "$artifact" .tar.gz)
# Extract the artifact contents
tar -xvf "$artifact" pixi > unpacked-artifacts/$base_name
chmod +x unpacked-artifacts/$base_name
tar -xvf "$artifact" -O pixi > unpacked-artifacts/$base_name
done
- name: Unpack binaries zip
run: |
set -e pipefail # fail if any command fails
for artifact in target/distrib/pixi-*.zip; do
echo artifact: $artifact
# Extract the base name without the extension
Expand Down Expand Up @@ -367,4 +368,4 @@ jobs:
# Write and read notes from a file to avoid quoting breaking things
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --draft true --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --draft --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*

0 comments on commit 1e49339

Please sign in to comment.