Commit ·
73d569f
1
Parent(s): b8b028f
Add GitHub Actions auto-sync to Hugging Face Space
Browse filesOn every push to main, mirror the repo to the HF Space so the live app
redeploys automatically. HF write token stored as the HF_TOKEN repo secret.
Move the Space's Docker/app_port config into the shared README frontmatter so
the mirror keeps the Space configured.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- .github/workflows/sync-to-hf.yml +24 -0
- README.md +11 -0
.github/workflows/sync-to-hf.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face Space
|
| 2 |
+
|
| 3 |
+
# Mirror this repo's main branch to the HF Space on every push, so the live
|
| 4 |
+
# app redeploys automatically. Needs an HF_TOKEN repo secret (write token).
|
| 5 |
+
on:
|
| 6 |
+
push:
|
| 7 |
+
branches: [main]
|
| 8 |
+
workflow_dispatch:
|
| 9 |
+
|
| 10 |
+
jobs:
|
| 11 |
+
sync:
|
| 12 |
+
runs-on: ubuntu-latest
|
| 13 |
+
steps:
|
| 14 |
+
- uses: actions/checkout@v4
|
| 15 |
+
with:
|
| 16 |
+
fetch-depth: 0
|
| 17 |
+
lfs: true
|
| 18 |
+
- name: Push to Hugging Face Space
|
| 19 |
+
env:
|
| 20 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
+
run: |
|
| 22 |
+
git push --force \
|
| 23 |
+
"https://Demolifted:${HF_TOKEN}@huggingface.co/spaces/Demolifted/kronos-market-forecast" \
|
| 24 |
+
main
|
README.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Kronos Market Forecast
|
| 2 |
|
| 3 |
A small web app that turns the open-source [Kronos](https://github.com/shiyu-coder/Kronos)
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Kronos Market Forecast
|
| 3 |
+
emoji: 📈
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
+
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
# Kronos Market Forecast
|
| 13 |
|
| 14 |
A small web app that turns the open-source [Kronos](https://github.com/shiyu-coder/Kronos)
|