Finalize schema and add deployment workflow

This commit is contained in:
dyzulk
2026-01-16 17:42:45 +07:00
parent 1ffdc7ea5f
commit 1e1222be1f
23 changed files with 2931 additions and 25 deletions

56
.github/workflows/deploy-site.yml vendored Normal file
View File

@@ -0,0 +1,56 @@
name: Deploy to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
# Grant GITHUB_TOKEN the permissions to deploy to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
# Inject secrets/vars from GitHub Repository Settings
VITE_SUPABASE_URL: ${{ vars.VITE_SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}
VITE_WORKER_URL: ${{ vars.VITE_WORKER_URL }}
VITE_R2_PUBLIC_DOMAIN: ${{ vars.VITE_R2_PUBLIC_DOMAIN }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4