CI / Lint (push) Canceled after 0s
CI / Build Test (stage-web) (push) Canceled after 0s
CI / Build Test (ui-loading-screens) (push) Canceled after 0s
CI / Build Test (ui-transitions) (push) Canceled after 0s
CI / Unit Test (push) Canceled after 0s
CI / Type Check (push) Canceled after 0s
CI / Check Provenance (push) Canceled after 0s
Sync Labels / sync-labels (push) Successful in 1m43s
- Remove stage-tamagotchi, stage-pocket, server, and engine workspaces with their workflows, addons, and docs - Switch the toolchain from pnpm to bun, replace lockfiles with bun.lock - Rewrite remaining product references to Moeka
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
name: HuggingFace Spaces
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
lfs: true
|
|
|
|
- run: |-
|
|
git clone https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/moeru-ai/airi --depth 1 apps/stage-web/dist
|
|
env:
|
|
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 26.7.0
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.4.2
|
|
|
|
- run: bun install --frozen-lockfile
|
|
- run: bun run build
|
|
env:
|
|
TARGET_HUGGINGFACE_SPACE: 'true'
|
|
VITE_APP_TARGET_HUGGINGFACE_SPACE: 'true'
|
|
VITE_ENABLE_ANALYTICS: 'true'
|
|
|
|
- id: airi_diff
|
|
working-directory: ./apps/stage-web/dist
|
|
run: |-
|
|
git lfs ls-files --all
|
|
git add .
|
|
if [[ -n $(git status --porcelain) ]]; then
|
|
echo "changes=true" >> "$GITHUB_OUTPUT";
|
|
fi
|
|
|
|
- if: steps.airi_diff.outputs.changes == 'true'
|
|
working-directory: ./apps/stage-web/dist
|
|
env:
|
|
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
|
run: |-
|
|
git config --local user.email "neko@ayaka.moe"
|
|
git config --local user.name "Neko Ayaka"
|
|
git commit -m "release: build ${{ github.sha }}"
|
|
git lfs push origin main --all
|
|
git push -f
|