Spaces:
Running on Zero
Running on Zero
Add GitHub Actions workflow to deploy main branch to prod HF Space (#16)
Browse filesMirrors deploy-dev.yml but triggers on push to main and pushes to the
someone-in-the-world/HighQualityVideoGeneration Space using a separate
HF_TOKEN_PROD secret.
Claude-Session: https://claude.ai/code/session_01DJSHbr6L4hXcGdYoL3MQbA
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
.github/workflows/deploy-main.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Deploy to Hugging Face Space (main)
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
workflow_dispatch: {}
|
| 8 |
+
|
| 9 |
+
jobs:
|
| 10 |
+
deploy:
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
steps:
|
| 13 |
+
- name: Checkout
|
| 14 |
+
uses: actions/checkout@v4
|
| 15 |
+
with:
|
| 16 |
+
ref: main
|
| 17 |
+
fetch-depth: 0
|
| 18 |
+
lfs: true
|
| 19 |
+
|
| 20 |
+
- name: Push to Hugging Face Space
|
| 21 |
+
env:
|
| 22 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN_PROD }}
|
| 23 |
+
run: |
|
| 24 |
+
git push --force "https://user:${HF_TOKEN}@huggingface.co/spaces/someone-in-the-world/HighQualityVideoGeneration" main:main
|