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:
+10
-6
@@ -117,12 +117,16 @@ jobs:
|
|||||||
- name: Upload macOS asset
|
- name: Upload macOS asset
|
||||||
run: |
|
run: |
|
||||||
RELEASE_ID=$(cat /tmp/release_id.txt)
|
RELEASE_ID=$(cat /tmp/release_id.txt)
|
||||||
curl -s -X POST \
|
if [ -f "build/tekton_armageddon_macos_${TAG_NAME}.zip" ]; then
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
curl -s -X POST \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \
|
||||||
echo "macOS uploaded"
|
"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
|
- name: Publish release
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user