Spaces:
Sleeping
Sleeping
Add GitHub Actions workflow for syncing to Hugging Face Space
Browse files
.github/workflows/sync-to-hf.yml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face Space
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
paths-ignore:
|
| 6 |
+
- 'data/scraping_scripts/**'
|
| 7 |
+
- 'README.md'
|
| 8 |
+
- 'docs/**'
|
| 9 |
+
- '**.md'
|
| 10 |
+
# Add any other paths you want to exclude
|
| 11 |
+
|
| 12 |
+
# to run this workflow manually from the Actions tab
|
| 13 |
+
workflow_dispatch:
|
| 14 |
+
|
| 15 |
+
jobs:
|
| 16 |
+
sync-to-hub:
|
| 17 |
+
runs-on: ubuntu-latest
|
| 18 |
+
steps:
|
| 19 |
+
- uses: actions/checkout@v3
|
| 20 |
+
with:
|
| 21 |
+
fetch-depth: 0
|
| 22 |
+
lfs: true
|
| 23 |
+
- name: Push to HuggingFace Space
|
| 24 |
+
env:
|
| 25 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 26 |
+
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
| 27 |
+
run: git push --force https://$HF_USERNAME:[email protected]/spaces/towardsai-tutors/ai-tutor-chatbot main:main
|