ci: update URLs from local to VPS
Release / Build & Release (push) Failing after 4m3s

This commit is contained in:
2026-07-04 01:13:17 +08:00
parent 34039db92c
commit 1652630153
+9 -22
View File
@@ -14,27 +14,19 @@ jobs:
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }} GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
TAG_NAME: ${{ github.ref_name }} TAG_NAME: ${{ github.ref_name }}
steps: steps:
- name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }}
- name: Install tools - name: Install tools
run: apt-get update -qq && apt-get install -y -qq curl unzip run: apt-get update -qq && apt-get install -y -qq curl unzip
- name: Checkout Code - name: Checkout Code
run: | run: |
# Use manual HTTP clone to bypass the complex SSH/Tailscale/Port222 networking completely.
# We use the internal gitea docker network IP and port 3000 directly.
git config --global credential.helper store git config --global credential.helper store
echo "http://adtpdn:${{ secrets.TEKTON_RELEASE_TOKEN }}@172.18.0.2:3000" > ~/.git-credentials echo "http://adtpdn:${{ secrets.TEKTON_RELEASE_TOKEN }}@52.74.133.55:3000" > ~/.git-credentials
git clone http://172.18.0.2:3000/danchie/tekton.git . git clone http://52.74.133.55:3000/danchie/tekton.git .
git checkout $TAG_NAME git checkout $TAG_NAME
- name: Setup Godot (Cached) - name: Setup Godot (Cached)
run: | run: |
apt-get install -y zip apt-get install -y zip
# Use cached godot engine binary
if [ ! -f /cache/godot_4.6 ]; then if [ ! -f /cache/godot_4.6 ]; then
echo "Downloading Godot 4.6..." 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" 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"
@@ -43,8 +35,6 @@ jobs:
fi fi
cp /cache/godot_4.6 /usr/local/bin/godot cp /cache/godot_4.6 /usr/local/bin/godot
chmod +x /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.official
if [ ! -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then if [ ! -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
echo "Downloading templates..." echo "Downloading templates..."
@@ -70,7 +60,7 @@ jobs:
mkdir -p build/linux mkdir -p build/linux
godot --headless --export-release "Linux/X11" build/linux/tekton_armageddon_linux.x86_64 || true 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 . cd build/linux && zip -r ../tekton_armageddon_linux_${TAG_NAME}.zip .
- name: Export macOS - name: Export macOS
run: | run: |
mkdir -p build/macos mkdir -p build/macos
@@ -80,13 +70,11 @@ jobs:
- name: Create Gitea Release - name: Create Gitea Release
run: | run: |
set -e 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" TAG="$TAG_NAME"
echo "Checking existing release for $TAG..." 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) RELEASE_ID=$(echo "$RELEASE_JSON" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*' || true)
if [ -z "$RELEASE_ID" ]; then if [ -z "$RELEASE_ID" ]; then
echo "Creating new release for $TAG..." echo "Creating new release for $TAG..."
RELEASE_JSON=$(curl -s -X POST \ RELEASE_JSON=$(curl -s -X POST \
@@ -101,7 +89,6 @@ jobs:
exit 1 exit 1
fi fi
fi fi
echo "release_id=$RELEASE_ID" echo "release_id=$RELEASE_ID"
echo "$RELEASE_ID" > /tmp/release_id.txt echo "$RELEASE_ID" > /tmp/release_id.txt
@@ -112,7 +99,7 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@build/tekton_armageddon_windows_${TAG_NAME}.zip" \ -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" echo "Windows uploaded"
- name: Upload Linux asset - name: Upload Linux asset
@@ -122,7 +109,7 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@build/tekton_armageddon_linux_${TAG_NAME}.zip" \ -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" echo "Linux uploaded"
- name: Upload macOS asset - name: Upload macOS asset
@@ -132,7 +119,7 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@build/tekton_armageddon_macos_${TAG_NAME}.zip" \ -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" echo "macOS uploaded"
- name: Publish release - name: Publish release
@@ -142,5 +129,5 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \ -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{"draft":false}' \ -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" echo "Published: https://git.klud.top/danchie/tekton/releases/tag/$TAG_NAME"