Compare commits
4 Commits
patches
...
experimental
| Author | SHA1 | Date | |
|---|---|---|---|
| 0786638a98 | |||
| 08a527195f | |||
| 4a3637482c | |||
| 8414f48106 |
@@ -13,137 +13,61 @@ on:
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build-patch:
|
||||
name: Build Patch
|
||||
build-and-deploy:
|
||||
name: Build & Deploy Patch
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
ACTIONS_STEP_DEBUG: true
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Uji Koneksi Jaringan & SSH
|
||||
run: |
|
||||
echo "Test Ping ke IP Tailscale Gitea..."
|
||||
ping -c 3 100.79.174.108 || echo "PING GAGAL: Runner tidak bisa akses jaringan Tailscale."
|
||||
|
||||
echo "Test Koneksi Port SSH..."
|
||||
nc -zv 100.79.174.108 222 || echo "PORT GAGAL: Port 222 tertutup dari dalam runner."
|
||||
|
||||
- name: Setup SSH config for Gitea
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "Host git.klud.top\n HostName 100.79.174.108\n Port 222\n StrictHostKeyChecking no" > ~/.ssh/config
|
||||
chmod 600 ~/.ssh/config
|
||||
|
||||
git config --global url."ssh://git@100.79.174.108:222/".insteadOf "git@git.klud.top:"
|
||||
git config --global url."ssh://git@100.79.174.108:222/".insteadOf "https://git.klud.top/"
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||
ssh-strict: false
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
|
||||
run: |
|
||||
git clone http://god:$GITEA_TOKEN@52.74.133.55:3000/danchie/tekton.git .
|
||||
git config user.name "god"
|
||||
git config user.email "god@noreply.git.klud.top"
|
||||
|
||||
- name: Setup Godot
|
||||
run: |
|
||||
if [ -f /cache/Godot_v4.6-stable_linux.x86_64.zip ]; then
|
||||
cp -a /cache/Godot_v4.6-stable_linux.x86_64.zip godot.zip
|
||||
else
|
||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||
fi
|
||||
unzip -q godot.zip
|
||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||
wget -q https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_linux.x86_64.zip -O /tmp/godot.zip
|
||||
unzip -q /tmp/godot.zip -d /tmp/godot
|
||||
mv /tmp/godot/Godot_v4.7-stable_linux.x86_64 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
|
||||
- name: Install export templates
|
||||
run: |
|
||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||
if [ -f /cache/Godot_v4.6-stable_export_templates.tpz ]; then
|
||||
cp -a /cache/Godot_v4.6-stable_export_templates.tpz /tmp/godot-templates.tpz
|
||||
else
|
||||
wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
||||
fi
|
||||
wget -nv https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||
mkdir -p ~/.local/share/godot/export_templates/4.7.stable
|
||||
if [ -d /tmp/godot-templates/templates ]; then
|
||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||
mv /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.7.stable/
|
||||
else
|
||||
cp -a /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.6.stable/
|
||||
mv /tmp/godot-templates/* ~/.local/share/godot/export_templates/4.7.stable/
|
||||
fi
|
||||
|
||||
- name: Run patch build script
|
||||
- name: Generate version.json & bump version
|
||||
env:
|
||||
PATCH_VERSION: ${{ github.event.inputs.version }}
|
||||
PATCH_NOTES: ${{ github.event.inputs.notes }}
|
||||
run: |
|
||||
python3 patch_version.py "$PATCH_VERSION" "$PATCH_NOTES"
|
||||
python3 tools/generate_version_json.py --skip-changelog
|
||||
|
||||
- name: Export Windows patch
|
||||
- name: Export patch PCK
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Windows Desktop" build/tekton_armageddon_patch_windows.exe
|
||||
godot --headless --export-pack "Windows Desktop" build/patch.pck 2>&1 | tail -5
|
||||
|
||||
- name: Export Linux patch
|
||||
run: |
|
||||
mkdir -p build
|
||||
godot --headless --export-release "Linux/X11" build/tekton_armageddon_patch_linux.x86_64
|
||||
|
||||
- name: Upload patch artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tekton-patch-${{ github.event.inputs.version }}
|
||||
path: |
|
||||
build/tekton_armageddon_patch_windows.exe
|
||||
build/tekton_armageddon_patch_linux.x86_64
|
||||
retention-days: 30
|
||||
|
||||
deploy-patch:
|
||||
name: Deploy Patch
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
needs: build-patch
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Download patch artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: tekton-patch-${{ github.event.inputs.version }}
|
||||
path: artifacts/patch
|
||||
|
||||
- name: Get or create Gitea patch release
|
||||
id: gitea_release
|
||||
- name: Push to patches branch
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.TEKTON_RELEASE_TOKEN }}
|
||||
TAG_NAME: patch-${{ github.event.inputs.version }}
|
||||
RELEASE_NAME: "Patch ${{ github.event.inputs.version }}"
|
||||
RELEASE_NOTES: ${{ github.event.inputs.notes }}
|
||||
run: |
|
||||
API="https://git.klud.top/api/v1/repos/danchie/tekton/releases"
|
||||
RELEASE_JSON=$(curl -s -H "Authorization: token $GITEA_TOKEN" "$API/tags/$TAG_NAME")
|
||||
RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import json,sys; print(json.load(sys.stdin).get('id',''))" 2>/dev/null)
|
||||
if [ -z "$RELEASE_ID" ]; then
|
||||
PAYLOAD=$(python3 -c "import json, os; print(json.dumps({'tag_name': os.environ['TAG_NAME'], 'name': os.environ['RELEASE_NAME'], 'body': os.environ['RELEASE_NOTES'], 'prerelease': True}))")
|
||||
RELEASE_JSON=$(curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$PAYLOAD" \
|
||||
"$API")
|
||||
RELEASE_ID=$(echo "$RELEASE_JSON" | python3 -c "import json,sys; print(json.load(sys.stdin)['id'])")
|
||||
fi
|
||||
echo "release_id=$RELEASE_ID" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload Windows patch asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@artifacts/patch/tekton_armageddon_patch_windows.exe" \
|
||||
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||
|
||||
- name: Upload Linux patch asset
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.TEKTON_RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@artifacts/patch/tekton_armageddon_patch_linux.x86_64" \
|
||||
"https://git.klud.top/api/v1/repos/danchie/tekton/releases/${{ steps.gitea_release.outputs.release_id }}/assets"
|
||||
mkdir -p patch-deploy
|
||||
cp build/patch.pck patch-deploy/
|
||||
cp assets/data/version.json patch-deploy/
|
||||
cd patch-deploy
|
||||
git init
|
||||
git config user.name "god"
|
||||
git config user.email "god@noreply.git.klud.top"
|
||||
git remote add origin http://god:$GITEA_TOKEN@52.74.133.55:3000/danchie/tekton.git
|
||||
git checkout -b patches
|
||||
git add .
|
||||
git commit -m "patch ${{ github.event.inputs.version }}"
|
||||
git push -f origin patches
|
||||
|
||||
+34
-31
@@ -1,43 +1,46 @@
|
||||
# Cloning from any tailnet machine
|
||||
# Clone Tekton from Gitea
|
||||
|
||||
## Prerequisites
|
||||
- The remote machine must be on your tailnet (registered + can ping `100.85.x.x`)
|
||||
- You must have an account on the Gitea instance (`http://git.klud.top`)
|
||||
- You must have an SSH key on the remote machine (`ssh-keygen` if you don't)
|
||||
|
||||
## Step 1: Add your SSH key to Gitea
|
||||
1. Open `http://git.klud.top/user/settings/keys` in browser
|
||||
2. Paste the content of `~/.ssh/id_ed25519.pub` (or `id_rsa.pub`)
|
||||
3. Click "Add Key"
|
||||
- You have a Gitea account at `https://git.klud.top`.
|
||||
- For SSH clone: your public SSH key is added at `https://git.klud.top/user/settings/keys`.
|
||||
|
||||
## SSH clone (preferred)
|
||||
|
||||
Test SSH:
|
||||
|
||||
## Step 2: Test SSH reachability
|
||||
```bash
|
||||
ssh -T git@thunderobot -p 222
|
||||
# Expected output: "Hello from Gitea!\n\nPlease come over!"
|
||||
# If asked about fingerprint, type "yes" and press Enter
|
||||
ssh -T git@ssh.git.klud.top
|
||||
```
|
||||
|
||||
## Step 3: Clone a repo
|
||||
```bash
|
||||
# Using tea CLI
|
||||
tea repos clone --git-protocol ssh danchie/tekton
|
||||
Expected output:
|
||||
|
||||
# Or plain git
|
||||
git clone git@thunderobot:222/danchie/tekton.git
|
||||
```text
|
||||
Hi there, <yourname>! You've successfully authenticated with the key named <key-title>, but Gitea does not provide shell access.
|
||||
```
|
||||
|
||||
Clone:
|
||||
|
||||
```bash
|
||||
git clone git@ssh.git.klud.top:danchie/tekton.git
|
||||
```
|
||||
|
||||
## HTTPS clone
|
||||
|
||||
```bash
|
||||
git clone https://git.klud.top/danchie/tekton.git
|
||||
```
|
||||
|
||||
Use HTTPS when SSH keys are not available, e.g. CI scripts or temporary machines.
|
||||
|
||||
## Tea CLI
|
||||
|
||||
```bash
|
||||
tea repos clone --git-protocol ssh danchie/tekton
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
- `ssh: connect to host thunderobot port 222: Connection refused`
|
||||
→ Ensure the remote machine has `tailscale ping thunderobot` resolving to `100.93.226.13`
|
||||
→ Ensure the host's port `222` is reachable from the remote (it's bound to `0.0.0.0:222` in Docker)
|
||||
|
||||
- `Permission denied (publickey)`
|
||||
→ Your SSH key wasn't added via Gitea web UI
|
||||
→ Run `ssh-add ~/.ssh/id_ed25519` if you use an agent
|
||||
|
||||
- `Host key verification failed`
|
||||
→ Run `ssh -T git@thunderobot -p 222` interactively once to accept the fingerprint
|
||||
|
||||
## HTTPS is disabled
|
||||
`DISABLE_HTTP_GIT = true` is set on the server. All clones MUST use SSH.
|
||||
If you need to fetch via HTTPS for CI or other non-ssh environments, this must be remapped.
|
||||
- **`Permission denied (publickey)`** — Your key was not added in Gitea, or your SSH agent has not loaded it. Run `ssh-add ~/.ssh/id_ed25519`.
|
||||
- **`Host key verification failed`** — Run `ssh -T git@ssh.git.klud.top` interactively once and accept the fingerprint.
|
||||
- **`Could not resolve hostname ssh.git.klud.top`** — DNS cache stale. Wait a few minutes or flush DNS.
|
||||
|
||||
@@ -4,23 +4,34 @@
|
||||
>
|
||||
> See in particular: [Skin Creation Workflow](https://git.klud.top/danchie/tekton/wiki/Skin-Creation-Workflow), [Nakama Deployment](https://git.klud.top/danchie/tekton/wiki/Nakama-Deployment), and [Patch Release Workflow](https://git.klud.top/danchie/tekton/wiki/Patch-Release-Workflow).
|
||||
|
||||
## SSH setup for cloning
|
||||
## Clone
|
||||
|
||||
All clones **must use SSH** over Tailscale. HTTPS is disabled on this instance.
|
||||
SSH is preferred:
|
||||
|
||||
Guides by operating system:
|
||||
```bash
|
||||
git clone git@ssh.git.klud.top:danchie/tekton.git
|
||||
```
|
||||
|
||||
HTTPS also works:
|
||||
|
||||
```bash
|
||||
git clone https://git.klud.top/danchie/tekton.git
|
||||
```
|
||||
|
||||
First-time SSH setup:
|
||||
|
||||
- [Linux](https://git.klud.top/danchie/tekton/wiki/SSH-Setup-Linux)
|
||||
- [macOS](https://git.klud.top/danchie/tekton/wiki/SSH-Setup-macOS)
|
||||
- [Windows](https://git.klud.top/danchie/tekton/wiki/SSH-Setup-Windows)
|
||||
|
||||
Quick verification after setup:
|
||||
SSH test:
|
||||
|
||||
```bash
|
||||
ssh -T git@thunderobot -p 222
|
||||
ssh -T git@ssh.git.klud.top
|
||||
```
|
||||
|
||||
Once verified, clone:
|
||||
```bash
|
||||
git clone git@thunderobot:222/danchie/tekton.git
|
||||
Expected output:
|
||||
|
||||
```text
|
||||
Hi there, <yourname>! You've successfully authenticated with the key named <key-title>, but Gitea does not provide shell access.
|
||||
```
|
||||
# god test commit
|
||||
|
||||
@@ -14,7 +14,7 @@ signal patch_applied
|
||||
signal store_update_required(store_url: String)
|
||||
|
||||
# Configuration - Update these URLs for your game
|
||||
const VERSION_MANIFEST_URL := "https://raw.githubusercontent.com/adtpdn/tekton-updates/main/latest/version.json"
|
||||
const VERSION_MANIFEST_URL := "https://raw.klud.top/danchie/tekton/version.json"
|
||||
const ANDROID_STORE_URL := "https://play.google.com/store/apps/details?id=com.yourcompany.tekton"
|
||||
const IOS_STORE_URL := "https://apps.apple.com/app/tekton/id123456789"
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ PROJECT_GODOT = "project.godot"
|
||||
CHANGELOG_DRAFT = "CHANGELOG_DRAFT.md"
|
||||
VERSION_JSON = "assets/data/version.json"
|
||||
EXPORT_PRESETS = "export_presets.cfg"
|
||||
MANIFEST_URL = "https://raw.githubusercontent.com/adtpdn/tekton-updates/main/latest/patch.pck"
|
||||
MANIFEST_URL = "https://raw.klud.top/danchie/tekton/patch.pck"
|
||||
|
||||
# ─── Parse command line arguments ─────────────────────────────────────────────
|
||||
parser = argparse.ArgumentParser(description="Generate version.json and update version numbers")
|
||||
|
||||
Reference in New Issue
Block a user