Public Access
fix: replace wget with curl in deploy, fix release asset upload to use multipart/form-data
Release Pipeline / build-and-release (push) Successful in 4m21s
Release Pipeline / build-and-release (push) Successful in 4m21s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
865c21d023
commit
18b76f2350
2 files changed
+5
-5
No files matched your search
@@ -43,8 +43,8 @@ jobs:
|
||||
| python3 -c "import sys, json; print(json.load(sys.stdin)[0]['tag_name'])")
|
||||
echo "Deploying release tag: ${TAG}"
|
||||
BASE_URL="${SERVER_URL}/${REPOSITORY}/releases/download/${TAG}"
|
||||
wget --fail -q "${BASE_URL}/brainwave-arm64.tar.gz" || { echo "Failed to download ARM tarball from ${BASE_URL}"; exit 1; }
|
||||
wget --fail -q "${BASE_URL}/docker-compose.arm64.yml" || { echo "Failed to download docker-compose file from ${BASE_URL}"; exit 1; }
|
||||
curl -fLO "${BASE_URL}/brainwave-arm64.tar.gz" || { echo "Failed to download ARM tarball from ${BASE_URL}"; exit 1; }
|
||||
curl -fLO "${BASE_URL}/docker-compose.arm64.yml" || { echo "Failed to download docker-compose file from ${BASE_URL}"; exit 1; }
|
||||
|
||||
- name: Deploy via Ansible
|
||||
env:
|
||||
|
||||
@@ -98,9 +98,9 @@ jobs:
|
||||
|
||||
# Upload each asset
|
||||
for FILE in brainwave-amd64.tar.gz brainwave-arm64.tar.gz docker-compose.amd64.yml docker-compose.arm64.yml; do
|
||||
curl -s -X POST \
|
||||
curl -f -X POST \
|
||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets?name=${FILE}" \
|
||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary @"${FILE}"
|
||||
-F "attachment=@${FILE}" \
|
||||
|| echo "Warning: failed to upload ${FILE}"
|
||||
done
|
||||
Reference in new issue
Block a user