titusgiap commited on
Commit
2a3d299
·
1 Parent(s): c04ebb3

Add Hugging Face deployment workflow

Browse files
.github/workflows/deploy-hf-spaces.yml CHANGED
@@ -1,20 +1,22 @@
1
- name: Deploy to Hugging Face Spaces v2
2
 
3
  on:
4
  push:
5
- branches: [main]
 
6
  workflow_dispatch:
7
 
8
  jobs:
9
  deploy:
10
  runs-on: ubuntu-latest
 
11
  steps:
12
  - uses: actions/checkout@v4
13
 
14
  - uses: huggingface/hub-sync@v0.1.0
15
  with:
16
  github_repo_id: ${{ github.repository }}
17
- huggingface_repo_id: dang2003/tnt-content-ai-v2
18
  hf_token: ${{ secrets.HF_TOKEN }}
19
  repo_type: space
20
- space_sdk: docker
 
1
+ name: Deploy to Hugging Face Space
2
 
3
  on:
4
  push:
5
+ branches:
6
+ - main
7
  workflow_dispatch:
8
 
9
  jobs:
10
  deploy:
11
  runs-on: ubuntu-latest
12
+
13
  steps:
14
  - uses: actions/checkout@v4
15
 
16
  - uses: huggingface/hub-sync@v0.1.0
17
  with:
18
  github_repo_id: ${{ github.repository }}
19
+ huggingface_repo_id: titusgiap/tnt_content
20
  hf_token: ${{ secrets.HF_TOKEN }}
21
  repo_type: space
22
+ space_sdk: docker