Files
studio/.gitea/workflows/deploy-arikigame.yml
T
ozan 7482278ae1
Build tinqs-git / build (push) Waiting to run
Deploy arikigame.com / deploy (push) Waiting to run
refactor: remove pre-Studio website; wire arikigame.com into monorepo
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>
2026-05-22 08:03:43 +01:00

35 lines
993 B
YAML

name: Deploy arikigame.com
on:
push:
branches: [main]
paths:
- 'web/arikigame/**'
- '.gitea/workflows/deploy-arikigame.yml'
jobs:
deploy:
runs-on: host
steps:
- uses: actions/checkout@v4
- name: Deploy static site to S3 + CloudFront
env:
S3_BUCKET: arikigame.com
CF_DISTRIBUTION: EDMY8TXLTDXLQ
run: |
set -e
SRC="web/arikigame/public"
if [ ! -d "$SRC" ]; then
echo "Missing $SRC — nothing to deploy"
exit 1
fi
echo "Syncing $SRC → s3://${S3_BUCKET}/"
aws s3 sync "$SRC" "s3://${S3_BUCKET}/" --delete \
--cache-control "public, max-age=300"
echo "Invalidating CloudFront ${CF_DISTRIBUTION}..."
aws cloudfront create-invalidation \
--distribution-id "${CF_DISTRIBUTION}" \
--paths "/*"
echo "OK arikigame.com deployed from tinqs/studio/web/arikigame/public"