feat(FN-094): add comment line for deployment verification
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled

- Added a comment line to main.ts for deployment verification purposes
This commit is contained in:
Fusion
2026-05-11 02:07:03 +00:00
parent c72f063a25
commit f4fea1e429
274 changed files with 20712 additions and 6305 deletions

View File

@@ -1,47 +0,0 @@
name: CI
on:
push:
branches: ["**"]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Lint, Typecheck, Test & Build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Biome lint
run: pnpm lint
- name: Type check
run: pnpm typecheck
- name: Unit tests
run: pnpm test
- name: Build
run: pnpm build

View File

@@ -22,7 +22,6 @@ jobs:
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script_stop: true
script: |
set -euo pipefail
@@ -34,7 +33,11 @@ jobs:
echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting deployment..."
echo "$(date '+%Y-%m-%d %H:%M:%S') - Pulling latest changes..."
git pull origin main
git fetch origin main
# Hard reset to remote to drop any stale build artifacts (e.g. tsbuildinfo)
# that would otherwise block 'git pull'. The deploy server is treated as
# a deployment target, not a development checkout.
git reset --hard origin/main
echo "$(date '+%Y-%m-%d %H:%M:%S') - Installing dependencies..."
pnpm install --frozen-lockfile

40
.github/workflows/sync-dev-to-gitea.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Sync dev → Gitea
# When dev is updated on GitHub (Fusion auto-push or manual), mirror it
# to Gitea so Coolify's Gitea webhook redeploys dev.sase.tr.
on:
push:
branches: [dev]
# Allow manual re-sync from the Actions tab
workflow_dispatch:
concurrency:
group: sync-dev-gitea
cancel-in-progress: false
jobs:
sync:
name: Mirror dev to Gitea
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout dev (full history)
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
- name: Push to Gitea
env:
GITEA_PUSH_URL: ${{ secrets.GITEA_PUSH_URL }}
run: |
set -euo pipefail
if [ -z "$GITEA_PUSH_URL" ]; then
echo "::error::GITEA_PUSH_URL secret not set"
exit 1
fi
# Fast-forward push; if Gitea has diverged, surface the failure
# rather than silently force-overwriting.
git push "$GITEA_PUSH_URL" HEAD:refs/heads/dev
echo "✓ dev synced to Gitea ($(git rev-parse --short HEAD))"