うみゅ commited on
Commit
1f6a75b
·
unverified ·
2 Parent(s): 2a425cf 75241bc

Merge pull request #6 from umyuu/feature/add-auto-deploy

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +22 -0
.github/workflows/deploy.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Deploy"
2
+ on:
3
+ push:
4
+ branches: [ "main" ]
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ environment: production
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ with:
14
+ fetch-depth: 0
15
+ lfs: true
16
+ - name: Set remote URL
17
+ run: git remote set-url origin ${{ secrets.PRODUCTION_SERVER }}
18
+
19
+ - name: Push to hub
20
+ env:
21
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
22
+ run: git push --force ${{ secrets.PRODUCTION_SERVER }} main