Public Access
fix: revert release creation to softprops/action-gh-release@v2 (without generate_release_notes)
Manual curl approach silently dropped large tar.gz files due to Gitea's attachment size limit. The action handles large file uploads correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
34410a9cb8
commit
c4e6219606
1 file changed
+9
-24
@@ -81,27 +81,12 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
run: |
|
uses: softprops/action-gh-release@v2
|
||||||
# Create the release
|
with:
|
||||||
RELEASE_RESPONSE=$(curl -s -X POST \
|
files: |
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" \
|
brainwave-amd64.tar.gz
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
brainwave-arm64.tar.gz
|
||||||
-H "Content-Type: application/json" \
|
docker-compose.amd64.yml
|
||||||
-d '{
|
docker-compose.arm64.yml
|
||||||
"tag_name": "${{ github.ref_name }}",
|
env:
|
||||||
"name": "Release ${{ github.ref_name }}",
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
"draft": false,
|
|
||||||
"prerelease": false
|
|
||||||
}')
|
|
||||||
|
|
||||||
RELEASE_ID=$(echo "$RELEASE_RESPONSE" | jq -r '.id')
|
|
||||||
|
|
||||||
# Upload each asset
|
|
||||||
for FILE in brainwave-amd64.tar.gz brainwave-arm64.tar.gz docker-compose.amd64.yml docker-compose.arm64.yml; do
|
|
||||||
echo "Uploading ${FILE}..."
|
|
||||||
curl -f -v -X POST \
|
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets?name=${FILE}" \
|
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
||||||
-F "attachment=@${FILE}" \
|
|
||||||
&& echo "Uploaded ${FILE}" || echo "Warning: failed to upload ${FILE}"
|
|
||||||
done
|
|
||||||
Reference in new issue
Block a user