Spaces:
Running
Running
Bachstelze commited on
Commit ·
e4134d1
1
Parent(s): ebb9152
new action
Browse files
.github/workflows/push_to_hf_space.yml
CHANGED
|
@@ -1,19 +1,23 @@
|
|
| 1 |
-
name: Sync
|
| 2 |
-
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
-
branches:
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
jobs:
|
| 9 |
-
|
| 10 |
runs-on: ubuntu-latest
|
| 11 |
steps:
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face hub
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
|
| 6 |
+
# to run this workflow manually from the Actions tab
|
| 7 |
+
workflow_dispatch:
|
| 8 |
|
| 9 |
jobs:
|
| 10 |
+
sync-to-hub:
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
| 13 |
+
- uses: actions/checkout@v3
|
| 14 |
+
with:
|
| 15 |
+
fetch-depth: 0
|
| 16 |
+
lfs: true
|
| 17 |
+
- name: Push to hub
|
| 18 |
+
env:
|
| 19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 20 |
+
run: git push https://Bachstelze:HF_TOKEN@huggingface.co/spaces/lnuDataProject/A1 main
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|