Spaces:
Runtime error
Runtime error
macrdel
commited on
Commit
·
bee72f4
1
Parent(s):
6772b0a
update workflow
Browse files- .github/workflows/main.yml +10 -4
.github/workflows/main.yml
CHANGED
@@ -2,8 +2,9 @@ name: Unit tests, Docker build, Deploy To HF spaces
|
|
2 |
|
3 |
on:
|
4 |
push:
|
5 |
-
branches:
|
6 |
-
|
|
|
7 |
|
8 |
jobs:
|
9 |
test-and-deploy:
|
@@ -33,8 +34,13 @@ jobs:
|
|
33 |
if: success()
|
34 |
run: docker push macrdel/sentiment-summarize-youtube-comments-backend:latest
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
- name: Deploy to Hugging Face Spaces
|
37 |
-
if: success()
|
38 |
env:
|
39 |
-
|
40 |
run: git push --force https://macrdel:$HF_TOKEN@huggingface.co/spaces/macrdel/sentiment-summarize-youtube-comms master:main
|
|
|
2 |
|
3 |
on:
|
4 |
push:
|
5 |
+
branches: [master]
|
6 |
+
|
7 |
+
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
10 |
test-and-deploy:
|
|
|
34 |
if: success()
|
35 |
run: docker push macrdel/sentiment-summarize-youtube-comments-backend:latest
|
36 |
|
37 |
+
sync-to-hub:
|
38 |
+
runs-on: ubuntu-latest
|
39 |
+
steps:
|
40 |
+
- uses: actions/checkout@v2
|
41 |
+
with:
|
42 |
+
fetch-depth: 0
|
43 |
- name: Deploy to Hugging Face Spaces
|
|
|
44 |
env:
|
45 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
46 |
run: git push --force https://macrdel:$HF_TOKEN@huggingface.co/spaces/macrdel/sentiment-summarize-youtube-comms master:main
|