|
|
|
@@ -20,8 +20,8 @@ jobs:
|
|
|
|
|
- name: Checkout Code
|
|
|
|
|
run: |
|
|
|
|
|
git config --global credential.helper store
|
|
|
|
|
echo "http://god:${{ secrets.TEKTON_RELEASE_TOKEN }}@git.klud.top" > ~/.git-credentials
|
|
|
|
|
git clone http://git.klud.top/danchie/tekton.git .
|
|
|
|
|
echo "https://god:${{ secrets.TEKTON_RELEASE_TOKEN }}@git.klud.top" > ~/.git-credentials
|
|
|
|
|
git clone https://git.klud.top/danchie/tekton.git .
|
|
|
|
|
git checkout $TAG_NAME
|
|
|
|
|
|
|
|
|
|
- name: Setup Godot (Cached)
|
|
|
|
@@ -85,7 +85,7 @@ jobs:
|
|
|
|
|
- name: Create Gitea Release
|
|
|
|
|
run: |
|
|
|
|
|
set -e
|
|
|
|
|
API="http://git.klud.top/api/v1/repos/danchie/tekton/releases"
|
|
|
|
|
API="https://git.klud.top/api/v1/repos/danchie/tekton/releases"
|
|
|
|
|
TAG="$TAG_NAME"
|
|
|
|
|
echo "Checking existing release for $TAG..."
|
|
|
|
|
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG" 2>/dev/null || echo "")
|
|
|
|
@@ -116,7 +116,7 @@ jobs:
|
|
|
|
|
-H "Authorization: token $GITEA_TOKEN" \
|
|
|
|
|
-H "Content-Type: multipart/form-data" \
|
|
|
|
|
-F "attachment=@build/tekton_armageddon_windows_${TAG_NAME}.zip" \
|
|
|
|
|
"http://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
|
|
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
|
|
|
|
echo "Windows uploaded"
|
|
|
|
|
|
|
|
|
|
- name: Upload Linux asset
|
|
|
|
@@ -126,7 +126,7 @@ jobs:
|
|
|
|
|
-H "Authorization: token $GITEA_TOKEN" \
|
|
|
|
|
-H "Content-Type: multipart/form-data" \
|
|
|
|
|
-F "attachment=@build/tekton_armageddon_linux_${TAG_NAME}.zip" \
|
|
|
|
|
"http://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
|
|
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
|
|
|
|
echo "Linux uploaded"
|
|
|
|
|
|
|
|
|
|
- name: Upload macOS asset
|
|
|
|
@@ -137,7 +137,7 @@ jobs:
|
|
|
|
|
-H "Authorization: token $GITEA_TOKEN" \
|
|
|
|
|
-H "Content-Type: multipart/form-data" \
|
|
|
|
|
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \
|
|
|
|
|
"http://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
|
|
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
|
|
|
|
|
echo "macOS uploaded"
|
|
|
|
|
else
|
|
|
|
|
echo "macOS asset not built, skipping"
|
|
|
|
@@ -150,5 +150,5 @@ jobs:
|
|
|
|
|
-H "Authorization: token $GITEA_TOKEN" \
|
|
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
|
-d '{"draft":false}' \
|
|
|
|
|
"http://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID"
|
|
|
|
|
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/$RELEASE_ID"
|
|
|
|
|
echo "Published: https://git.klud.top/danchie/tekton/releases/tag/$TAG_NAME"
|
|
|
|
|