7482278ae1
Delete web/landing (legacy tinqs-ltd/website Next.js). Add web/arikigame with static public site and deploy-arikigame.yml (S3 + CloudFront). Link Ariki from tinqs.com logged-out home. Fix build.yml to trigger on main. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
975 B
YAML
33 lines
975 B
YAML
name: Build tinqs-git
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: host
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.26.2'
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
- run: npm install -g pnpm
|
|
- name: Build tinqs-git
|
|
run: TAGS="bindata sqlite sqlite_unlock_notify" make build
|
|
- name: Verify binary
|
|
run: ls -lh gitea && echo "Build successful"
|
|
|
|
- name: Upload to S3
|
|
run: |
|
|
SHORT_SHA=$(echo "${GITHUB_SHA:-$(git rev-parse --short HEAD)}" | cut -c1-10)
|
|
echo "Uploading tinqs-git ($SHORT_SHA) to S3..."
|
|
aws s3 cp gitea "s3://tinqs-cli-releases/tinqs-git/$SHORT_SHA/tinqs-git"
|
|
aws s3 cp gitea "s3://tinqs-cli-releases/tinqs-git/latest/tinqs-git"
|
|
echo "OK tinqs-git ($SHORT_SHA) → s3://tinqs-cli-releases/tinqs-git/"
|