ci: use GITEA_TOKEN env var, skip macOS upload if missing
Release / Build & Release (push) Successful in 24m57s
Release / Build & Release (push) Successful in 24m57s
This commit is contained in:
@@ -117,12 +117,16 @@ jobs:
|
||||
- name: Upload macOS asset
|
||||
run: |
|
||||
RELEASE_ID=$(cat /tmp/release_id.txt)
|
||||
if [ -f "build/tekton_armageddon_macos_${TAG_NAME}.zip" ]; then
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \
|
||||
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
||||
echo "macOS uploaded"
|
||||
else
|
||||
echo "macOS asset not built, skipping"
|
||||
fi
|
||||
|
||||
- name: Publish release
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user