bartwisch commited on
Commit
2d5f5ce
·
1 Parent(s): a657dbf

chore: add GitHub Action to sync Space

Browse files
Files changed (1) hide show
  1. .github/workflows/sync-to-hf.yml +23 -0
.github/workflows/sync-to-hf.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face Space
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Check out repository
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+ lfs: true
18
+
19
+ - name: Push main to Hugging Face Space
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: |
23
+ git push https://Hugobartwisch:$HF_TOKEN@huggingface.co/spaces/Hugobartwisch/mangatranslator main