17 Commits

Author SHA1 Message Date
adtpdn 6971c27d77 ci: use GITEA_TOKEN env var, skip macOS upload if missing
Release / Build & Release (push) Successful in 24m57s
2026-07-04 01:59:48 +08:00
adtpdn 7e6e0f7bef ci: guard macOS mv if export fails
Release / Build & Release (push) Failing after 5m45s
2026-07-04 01:48:36 +08:00
adtpdn 869f670605 ci: macOS export can fail, allow continue
Release / Build & Release (push) Failing after 5m12s
2026-07-04 01:42:33 +08:00
adtpdn db061a7946 ci: fix second ref to .official dir
Release / Build & Release (push) Failing after 5m14s
2026-07-04 01:34:28 +08:00
adtpdn 20cd2d08b8 ci: fix export templates path 4.6.stable not .official
Release / Build & Release (push) Failing after 2m52s
2026-07-04 01:28:24 +08:00
adtpdn 1652630153 ci: update URLs from local to VPS
Release / Build & Release (push) Failing after 4m3s
2026-07-04 01:13:17 +08:00
adtpdn 34039db92c chore(ci): use HTTP manual clone with Gitea internal Docker network IP, ditch ssh
Release / Build & Release (push) Failing after 2m20s
2026-07-03 18:26:11 +08:00
adtpdn bf9ae51702 chore(ci): use explicit ip for gitea in ssh config
Release / Build & Release (push) Failing after 2m26s
2026-07-03 18:21:13 +08:00
adtpdn 7a02eee277 chore(ci): use manual clone because checkout action overrides ssh settings
Release / Build & Release (push) Failing after 33s
2026-07-03 18:17:21 +08:00
adtpdn d6daed62b8 chore(ci): use proper gitea act_runner network config to resolve gitea internally
Release / Build & Release (push) Failing after 1m14s
2026-07-03 18:14:05 +08:00
adtpdn 0548f54168 chore(ci): rewrite thunderobot without ts suffix down to port 22 as well
Release / Build & Release (push) Has been cancelled
2026-07-03 18:04:37 +08:00
adtpdn 3fe8de2e32 chore(ci): alias magicdns thunderobot.tail5d6e8e.ts.net and strip port 222
Release / Build & Release (push) Failing after 14m23s
2026-07-03 18:04:13 +08:00
adtpdn f40dae5a03 chore(ci): remap port 222 to port 22 via git config
Release / Build & Release (push) Failing after 7m30s
2026-07-03 18:02:08 +08:00
adtpdn ab3ffbbec8 chore(ci): alias both gitea and thunderobot directly to IP
Release / Build & Release (push) Failing after 7m27s
2026-07-03 18:01:36 +08:00
adtpdn da5c319a5b chore(ci): use internal gitea docker networking alias for checkout
Release / Build & Release (push) Failing after 1m5s
2026-07-03 17:56:10 +08:00
adtpdn 5e5d0c8ecf chore(ci): move network connect step before checkout
Release / Build & Release (push) Failing after 1m3s
2026-07-03 17:41:56 +08:00
adtpdn b5e22f3ca5 chore(ci): export to exe/x86_64 then zip, ignore gdscript warning
Release / Build & Release (push) Failing after 7s
2026-07-03 17:21:25 +08:00
+22 -34
View File
@@ -14,32 +14,19 @@ jobs:
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
TAG_NAME: ${{ github.ref_name }}
steps:
- name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }}
- name: Add Gitea SSH Host Key
run: |
mkdir -p ~/.ssh
printf "Host 172.18.0.1\n Port 222\n StrictHostKeyChecking no\n" > ~/.ssh/config
chmod 600 ~/.ssh/config
- name: Install tools
run: apt-get update -qq && apt-get install -y -qq curl unzip
- name: Checkout Code
run: |
git clone ssh://git@172.18.0.1:222/danchie/tekton.git .
git config --global credential.helper store
echo "http://adtpdn:${{ secrets.TEKTON_RELEASE_TOKEN }}@52.74.133.55:3000" > ~/.git-credentials
git clone http://52.74.133.55:3000/danchie/tekton.git .
git checkout $TAG_NAME
- name: Install tools
run: apt-get update -qq && apt-get install -y -qq docker.io curl unzip
- name: Connect job container to gitea_default network
run: docker network connect gitea_default $(hostname)
- name: Setup Godot (Cached)
run: |
apt-get install -y zip
# Use cached godot engine binary
if [ ! -f /cache/godot_4.6 ]; then
echo "Downloading Godot 4.6..."
curl -sL -o /tmp/godot.zip "https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip"
@@ -48,15 +35,13 @@ jobs:
fi
cp /cache/godot_4.6 /usr/local/bin/godot
chmod +x /usr/local/bin/godot
# Setup templates
mkdir -p ~/.local/share/godot/export_templates/4.6.stable.official
mkdir -p ~/.local/share/godot/export_templates/4.6.stable
if [ ! -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
echo "Downloading templates..."
curl -sL -o /cache/Godot_v4.6-stable_export_templates.tpz \
"https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz"
fi
cd ~/.local/share/godot/export_templates/4.6.stable.official
cd ~/.local/share/godot/export_templates/4.6.stable
unzip -q -o /cache/Godot_v4.6-stable_export_templates.tpz
mv templates/* .
rm -rf templates
@@ -67,31 +52,31 @@ jobs:
run: |
mkdir -p build/windows
cp addons/godotsteam/libgodotsteam* build/windows/ 2>/dev/null || true
godot --headless --export-release "Windows Desktop" build/windows/tekton_armageddon_windows_${TAG_NAME}.zip 2>&1 | tail -5
godot --headless --export-release "Windows Desktop" build/windows/tekton_armageddon_windows.exe || true
cd build/windows && zip -r ../tekton_armageddon_windows_${TAG_NAME}.zip .
- name: Export Linux
run: |
mkdir -p build/linux
godot --headless --export-release "Linux/X11" build/linux/tekton_armageddon_linux_${TAG_NAME}.zip 2>&1 | tail -5
godot --headless --export-release "Linux/X11" build/linux/tekton_armageddon_linux.x86_64 || true
cd build/linux && zip -r ../tekton_armageddon_linux_${TAG_NAME}.zip .
- name: Export macOS
run: |
mkdir -p build/macos
godot --headless --export-release "macOS" build/macos/tekton_armageddon_macos.zip 2>&1 | tail -5
godot --headless --export-release "macOS" build/macos/tekton_armageddon_macos.zip 2>&1 | tail -5 || true
if [ -f build/macos/tekton_armageddon_macos.zip ]; then
mv build/macos/tekton_armageddon_macos.zip build/tekton_armageddon_macos_${TAG_NAME}.zip
fi
- name: Create Gitea Release
run: |
set -e
API="http://gitea:3000/api/v1/repos/danchie/tekton/releases"
API="http://52.74.133.55:3000/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")
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG" 2>/dev/null || echo "")
RELEASE_ID=$(echo "$RELEASE_JSON" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*' || true)
if [ -z "$RELEASE_ID" ]; then
echo "Creating new release for $TAG..."
RELEASE_JSON=$(curl -s -X POST \
@@ -106,7 +91,6 @@ jobs:
exit 1
fi
fi
echo "release_id=$RELEASE_ID"
echo "$RELEASE_ID" > /tmp/release_id.txt
@@ -117,7 +101,7 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: multipart/form-data" \
-F "attachment=@build/tekton_armageddon_windows_${TAG_NAME}.zip" \
"http://gitea:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
echo "Windows uploaded"
- name: Upload Linux asset
@@ -127,18 +111,22 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: multipart/form-data" \
-F "attachment=@build/tekton_armageddon_linux_${TAG_NAME}.zip" \
"http://gitea:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
echo "Linux uploaded"
- 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://gitea:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID/assets"
"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: |
@@ -147,5 +135,5 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"draft":false}' \
"http://gitea:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID"
"http://52.74.133.55:3000/api/v1/repos/danchie/tekton/releases/$RELEASE_ID"
echo "Published: https://git.klud.top/danchie/tekton/releases/tag/$TAG_NAME"