Klasta commited on
Commit
9e2f27b
·
1 Parent(s): 1717df1

Add CI/CD deploy workflow for Hugging Face Spaces

Browse files
Files changed (2) hide show
  1. .github/workflows/deploy.yml +5 -4
  2. .gitignore +1 -0
.github/workflows/deploy.yml CHANGED
@@ -11,9 +11,10 @@ jobs:
11
  steps:
12
  - uses: actions/checkout@v3
13
 
14
- - name: Push to Hugging Face Spaces
 
 
15
  run: |
16
- git config --global user.email "you@example.com"
17
- git config --global user.name "Your Name"
18
- git remote add hf https://klasta:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Klasta/testing_spaces || true
19
  git push hf main --force
 
11
  steps:
12
  - uses: actions/checkout@v3
13
 
14
+ - name: Deploy to Hugging Face Space
15
+ env:
16
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
17
  run: |
18
+ git remote remove hf || true
19
+ git remote add hf https://klasta:${HF_TOKEN}@huggingface.co/spaces/Klasta/testing_spaces
 
20
  git push hf main --force
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ __pycache__