Spaces:
Runtime error
Runtime error
macrdel
commited on
Commit
·
6772b0a
1
Parent(s):
a9e039c
update workflow
Browse files
.github/workflows/deploy.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
name: Deploy to Hugging Face spaces
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
branches: [master]
|
6 |
-
|
7 |
-
# to run this workflow manually 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@v2
|
15 |
-
with:
|
16 |
-
fetch-depth: 0
|
17 |
-
- name: Push to hub
|
18 |
-
env:
|
19 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
-
run: git push --force https://macrdel:$HF_TOKEN@huggingface.co/spaces/macrdel/sentiment-summarize-youtube-comms master:main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/{test_build.yml → main.yml}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
name: Unit tests
|
2 |
|
3 |
on:
|
4 |
push:
|
@@ -32,3 +32,9 @@ jobs:
|
|
32 |
- name: Push Docker image
|
33 |
if: success()
|
34 |
run: docker push macrdel/sentiment-summarize-youtube-comments-backend:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Unit tests, Docker build, Deploy To HF spaces
|
2 |
|
3 |
on:
|
4 |
push:
|
|
|
32 |
- name: Push Docker image
|
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 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
40 |
+
run: git push --force https://macrdel:$HF_TOKEN@huggingface.co/spaces/macrdel/sentiment-summarize-youtube-comms master:main
|