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>
35 lines
993 B
YAML
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"
|