prgrmc commited on
Commit
bfc4193
·
1 Parent(s): d880d01

Add actions for huggin face deployment

Browse files
.github/workflows/deploy-to-spaces.yml CHANGED
@@ -11,5 +11,5 @@ jobs:
11
  - name: Deploy to Spaces
12
  uses: huggingface/deploy-to-spaces@main
13
  with:
14
- space-id: "yourusername/ai-dungeon-game"
15
  token: ${{ secrets.HF_TOKEN }}
 
11
  - name: Deploy to Spaces
12
  uses: huggingface/deploy-to-spaces@main
13
  with:
14
+ space-id: "Prgrmmer/ai-dungeon"
15
  token: ${{ secrets.HF_TOKEN }}
.github/workflows/sync-to-hugging-face-hub.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
+ run: git push https://Prgrmmer:[email protected]/spaces/Prgrmmer/ai-dungeon main