david-oplatka commited on
Commit
a938ee3
·
unverified ·
1 Parent(s): d98174b

Create update_space_2

Browse files
Files changed (1) hide show
  1. .github/workflows/update_space_2 +31 -0
.github/workflows/update_space_2 ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Update Space
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ space_name: [company-pet-policy, about-mls, shakespeare] # List your Hugging Face space names here
13
+
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v2
17
+ with:
18
+ fetch-depth: 0
19
+ lfs: true
20
+
21
+ - name: Configure Git
22
+ run: |
23
+ git config --global user.email "[email protected]"
24
+ git config --global user.name "GitHub Actions"
25
+
26
+ - name: Push to Hugging Face
27
+ env:
28
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
29
+ run: |
30
+ git remote set-url origin https://david-oplatka:[email protected]/spaces/david-oplatka/${{ matrix.space_name }}.git
31
+ git push origin main