Max Chis
commited on
Commit
·
6a15d81
1
Parent(s):
8929439
Update sync-to-hf.yml
Browse files
.github/workflows/sync-to-hf.yml
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# .github/workflows/sync-to-hf.yml
|
| 2 |
name: Sync to Hugging Face
|
| 3 |
|
| 4 |
on:
|
|
@@ -8,9 +7,16 @@ on:
|
|
| 8 |
jobs:
|
| 9 |
sync:
|
| 10 |
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
steps:
|
| 12 |
- uses: actions/checkout@v3
|
|
|
|
| 13 |
- name: Push to Hugging Face
|
| 14 |
run: |
|
| 15 |
-
git
|
|
|
|
|
|
|
| 16 |
git push hf main
|
|
|
|
|
|
|
| 1 |
name: Sync to Hugging Face
|
| 2 |
|
| 3 |
on:
|
|
|
|
| 7 |
jobs:
|
| 8 |
sync:
|
| 9 |
runs-on: ubuntu-latest
|
| 10 |
+
|
| 11 |
+
env:
|
| 12 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 13 |
+
|
| 14 |
steps:
|
| 15 |
- uses: actions/checkout@v3
|
| 16 |
+
|
| 17 |
- name: Push to Hugging Face
|
| 18 |
run: |
|
| 19 |
+
git config --global user.email "ci@example.com"
|
| 20 |
+
git config --global user.name "CI Bot"
|
| 21 |
+
git remote add hf https://PDAP:${HF_TOKEN}@huggingface.co/PDAP/inference_prototype_test
|
| 22 |
git push hf main
|