SOY NV AI commited on
Commit ยท
7c322ef
1
Parent(s): ae31891
Update GitHub Actions workflow
Browse files
.github/workflows/sync_to_hub.yml
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
jobs:
|
| 2 |
sync-to-hub:
|
| 3 |
runs-on: ubuntu-latest
|
| 4 |
steps:
|
|
|
|
| 5 |
- uses: actions/checkout@v3
|
| 6 |
with:
|
| 7 |
fetch-depth: 0
|
| 8 |
lfs: true
|
|
|
|
|
|
|
|
|
|
| 9 |
- name: Push to hub
|
| 10 |
env:
|
| 11 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 12 |
-
# ์๋
|
| 13 |
-
run: git push https://wiizm:$HF_TOKEN@huggingface.co/spaces/wiizm
|
|
|
|
| 1 |
+
name: Sync to Hugging Face hub
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main] # ๋ธ๋์น ์ด๋ฆ์ด master๋ผ๋ฉด master๋ก ๋ณ๊ฒฝ
|
| 5 |
+
workflow_dispatch:
|
| 6 |
+
|
| 7 |
jobs:
|
| 8 |
sync-to-hub:
|
| 9 |
runs-on: ubuntu-latest
|
| 10 |
steps:
|
| 11 |
+
# 1. ๋ด ๊นํ๋ธ ์ฝ๋๋ฅผ ๊ฐ์ ธ์ค๋ ๋จ๊ณ (์ฌ๊ธฐ์ ์๋ฌ๊ฐ ๋ฌ์์)
|
| 12 |
- uses: actions/checkout@v3
|
| 13 |
with:
|
| 14 |
fetch-depth: 0
|
| 15 |
lfs: true
|
| 16 |
+
# (์ฃผ์: ์ฌ๊ธฐ์ repository: / ๋๋ path: hf-space ๊ฐ์ ์ค์ด ์์ผ๋ฉด ์ ๋ฉ๋๋ค!)
|
| 17 |
+
|
| 18 |
+
# 2. Hugging Face๋ก ๋ฐ์ด๋ฃ๋ ๋จ๊ณ
|
| 19 |
- name: Push to hub
|
| 20 |
env:
|
| 21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 22 |
+
# ์๋ ์ฃผ์์์ [์ด์ธ์ธ๋์์ด๋]์ [์คํ์ด์ค์ด๋ฆ]์ ๊ผญ ํ์ธํด์ ์์ ํด์ฃผ์ธ์!
|
| 23 |
+
run: git push https://wiizm:$HF_TOKEN@huggingface.co/spaces/wiizm main
|