forked from MercuryWorkshop/scramjet
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 1014 Bytes
/
Copy pathhf.yml
File metadata and controls
41 lines (32 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy to Hugging Face Space
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Clone Hugging Face Space
run: |
git clone https://huggingface.co/spaces/0800idk/math space
- name: Sync files (exclude images)
run: |
rsync -av \
--exclude ".git" \
--exclude ".github" \
--exclude "*.png" \
--exclude "*.jpg" \
--exclude "*.jpeg" \
--exclude "*.webp" \
./ space/
- name: Commit and push to Hugging Face
run: |
cd space
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add .
git commit -m "sync (no images)" || exit 0
git push https://0800:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/0800idk/math main