Rain Poo
commited on
Update main.yml
Browse files- .github/workflows/main.yml +8 -13
.github/workflows/main.yml
CHANGED
@@ -2,6 +2,8 @@ name: Sync to Hugging Face hub
|
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
|
|
|
|
5 |
workflow_dispatch:
|
6 |
|
7 |
jobs:
|
@@ -11,18 +13,11 @@ jobs:
|
|
11 |
- uses: actions/checkout@v2
|
12 |
with:
|
13 |
fetch-depth: 0
|
14 |
-
|
15 |
-
- name: Login to Hugging Face
|
16 |
env:
|
17 |
-
|
18 |
-
run:
|
19 |
-
|
20 |
-
huggingface-cli login --token $HF
|
21 |
-
|
22 |
-
- name: Push to Hugging Face Spaces
|
23 |
env:
|
24 |
-
|
25 |
-
run:
|
26 |
-
huggingface-cli upload-space RainPoo/Automated-Interview-Filtering \
|
27 |
-
--commit-message "Automated deployment from GitHub" \
|
28 |
-
--create-if-not-exists
|
|
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
|
|
13 |
- uses: actions/checkout@v2
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
+
- name: Add remote
|
|
|
17 |
env:
|
18 |
+
HF: ${{ secrets.HF }}
|
19 |
+
run: git remote add space https://RainPoo:$HF@huggingface.co/spaces/RainPoo/Automated-Interview-Filtering
|
20 |
+
- name: Push to hub
|
|
|
|
|
|
|
21 |
env:
|
22 |
+
HF: ${{ secrets.HF }}
|
23 |
+
run: git push --force https://RainPoo:$HF@huggingface.co/spaces/RainPoo/Automated-Interview-Filtering main
|
|
|
|
|
|