SOY NV AI commited on
Commit
e64928d
ยท
1 Parent(s): 626865e

Update GitHub Actions workflow configuration

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_to_hub.yml +17 -5
.github/workflows/sync_to_hub.yml CHANGED
@@ -1,23 +1,35 @@
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
 
1
  name: Sync to Hugging Face hub
2
  on:
3
  push:
4
+ branches: [main]
5
  workflow_dispatch:
6
 
7
  jobs:
8
  sync-to-hub:
9
  runs-on: ubuntu-latest
10
  steps:
11
+ # 1. [ํ•ต์‹ฌ] ๋””์Šคํฌ ์šฉ๋Ÿ‰ ํ™•๋ณด (์“ธ๋ฐ์—†๋Š” ํ”„๋กœ๊ทธ๋žจ ์‚ญ์ œ)
12
+ - name: Free Disk Space (Ubuntu)
13
+ uses: jlumbroso/free-disk-space@main
14
+ with:
15
+ # AI ํ”„๋กœ์ ํŠธ์— ๋ถˆํ•„์š”ํ•œ ๊ฒƒ๋“ค์„ ๊ณผ๊ฐํ•˜๊ฒŒ ์ง€์›๋‹ˆ๋‹ค.
16
+ tool-cache: true
17
+ android: true
18
+ dotnet: true
19
+ haskell: true
20
+ large-packages: true
21
+ docker-images: true
22
+ swap-storage: true
23
+
24
+ # 2. ๋‚ด ์ฝ”๋“œ ๊ฐ€์ ธ์˜ค๊ธฐ
25
  - uses: actions/checkout@v3
26
  with:
27
  fetch-depth: 0
28
  lfs: true
 
29
 
30
+ # 3. Hugging Face๋กœ ๋ฐ€์–ด๋„ฃ๊ธฐ
31
  - name: Push to hub
32
  env:
33
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
34
+ # [์ฃผ์˜] ์•„๋ž˜ ์ฃผ์†Œ์˜ ๋ณธ์ธ ์•„์ด๋””์™€ ์ŠคํŽ˜์ด์Šค ์ด๋ฆ„์„ ํ™•์ธํ•˜์„ธ์š”!
35
  run: git push https://wiizm:$HF_TOKEN@huggingface.co/spaces/wiizm main