Skip to content

Commit

Permalink
Fix uploading of release artifacts for musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
iamazeem committed Dec 17, 2024
1 parent ef63e5a commit 2f8d443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ jobs:

- name: Upload release artifacts
if: startsWith(github.ref, 'refs/tags/v')
run: ./scripts/ci-upload-release-artifacts.sh
run: |
git config --global --add safe.directory "$PWD"
./scripts/ci-upload-release-artifacts.sh
ghcr:
needs: ci-musl
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci-upload-release-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ set -e

echo "[INF] Running $0"

if [ "$ARTIFACT_DIR" = "" ]; then
echo "[ERR] Set ARTIFACT_DIR before running $0 script."
if [ "$TAG" = "" ] || [ "$ARTIFACT_DIR" = "" ]; then
echo "[ERR] Set TAG and ARTIFACT_DIR before running $0 script."
exit 1
fi

for ARTIFACT in "$ARTIFACT_DIR"/*; do
for ARTIFACT in "$ARTIFACT_DIR"/zsv-$TAG-; do
if [ -f "$ARTIFACT" ]; then
echo "[INF] Uploading artifact... [$ARTIFACT]"
gh release upload "$GITHUB_REF_NAME" "$ARTIFACT"
Expand Down

0 comments on commit 2f8d443

Please sign in to comment.