Spaces:
Running
Running
semmyk-research
commited on
Create main_semmyKG.yml, push to HF semmyKG
Browse files
.github/workflows/main_semmyKG.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to HuggingFace hub - semmyKG
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
|
| 6 |
+
# assist: https://huggingface.co/docs/hub/en/spaces-github-actions
|
| 7 |
+
### git remote add space https://huggingface.co/spaces/HF_USERNAME/SPACE_NAME #Add space repo
|
| 8 |
+
### git remote add space https://huggingface.co/spaces/semmyk/semmyKG
|
| 9 |
+
### git push --force space main #force push to sync everything for the first time
|
| 10 |
+
|
| 11 |
+
# to run this workflow manually from the Actions tab
|
| 12 |
+
workflow_dispatch:
|
| 13 |
+
|
| 14 |
+
jobs:
|
| 15 |
+
sync-to-hub:
|
| 16 |
+
runs-on: ubuntu-latest
|
| 17 |
+
steps:
|
| 18 |
+
- uses: actions/checkout@v3
|
| 19 |
+
with:
|
| 20 |
+
fetch-depth: 0
|
| 21 |
+
lfs: true
|
| 22 |
+
- name: Push to hub
|
| 23 |
+
env:
|
| 24 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 25 |
+
#run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/HF_USERNAME/SPACE_NAME main
|
| 26 |
+
run: git push https://semmyk:$HF_TOKEN@huggingface.co/spaces/semmyk/semmyKG main
|