Merge pull request #31 from DL4DS/actions
Browse files
.github/workflows/push_to_hf_space_prototype.yml
CHANGED
|
@@ -1,20 +1,21 @@
|
|
| 1 |
name: Push Prototype to HuggingFace
|
| 2 |
|
| 3 |
on:
|
| 4 |
-
|
| 5 |
-
branches:
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
jobs:
|
| 10 |
-
|
| 11 |
runs-on: ubuntu-latest
|
| 12 |
steps:
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
| 1 |
name: Push Prototype to HuggingFace
|
| 2 |
|
| 3 |
on:
|
| 4 |
+
push:
|
| 5 |
+
branches: [dev_branch]
|
| 6 |
+
|
| 7 |
+
# run this workflow manuall from the Actions tab
|
| 8 |
+
workflow_dispatch:
|
| 9 |
|
| 10 |
jobs:
|
| 11 |
+
sync-to-hub:
|
| 12 |
runs-on: ubuntu-latest
|
| 13 |
steps:
|
| 14 |
+
- uses: actions/checkout@v4
|
| 15 |
+
with:
|
| 16 |
+
fetch-depth: 0
|
| 17 |
+
lfs: true
|
| 18 |
+
- name: Deploy Prototype to HuggingFace
|
| 19 |
+
env:
|
| 20 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 21 |
+
run: git push https://trgardos:$HF_TOKEN@huggingface.co/spaces/dl4ds/tutor_dev main
|