SOY NV AI
commited on
Commit
ยท
d098e7b
1
Parent(s):
5c73949
Add dockerignore file and update GitHub Actions workflow
Browse files- .github/workflows/sync_to_hub.yml +19 -18
- dockerignore +14 -0
.github/workflows/sync_to_hub.yml
CHANGED
|
@@ -8,29 +8,30 @@ jobs:
|
|
| 8 |
sync-to-hub:
|
| 9 |
runs-on: ubuntu-latest
|
| 10 |
steps:
|
| 11 |
-
# 1. [
|
| 12 |
-
- name:
|
| 13 |
-
uses:
|
| 14 |
with:
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
haskell: true
|
| 20 |
-
|
| 21 |
-
docker-images: true
|
| 22 |
-
swap-storage: true
|
| 23 |
|
| 24 |
-
# 2.
|
| 25 |
- uses: actions/checkout@v3
|
| 26 |
with:
|
| 27 |
-
fetch-depth:
|
| 28 |
-
lfs:
|
| 29 |
|
| 30 |
-
# 3. Hugging Face๋ก
|
| 31 |
- name: Push to hub
|
| 32 |
env:
|
| 33 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
| 8 |
sync-to-hub:
|
| 9 |
runs-on: ubuntu-latest
|
| 10 |
steps:
|
| 11 |
+
# 1. [์ด๊ฐ๋ ฅ ์ฒญ์] ์๋๋ก์ด๋, ๋ท๋ท, ํ์ค์ผ ๋ฑ AI์ ๊ด๋ จ ์๋ ํด์ ์ ๋ถ ์ญ์
|
| 12 |
+
- name: Maximize Build Space
|
| 13 |
+
uses: easimon/maximize-build-space@master
|
| 14 |
with:
|
| 15 |
+
root-reserve-mb: 2048
|
| 16 |
+
swap-size-mb: 1024
|
| 17 |
+
remove-dotnet: 'true'
|
| 18 |
+
remove-android: 'true'
|
| 19 |
+
remove-haskell: 'true'
|
| 20 |
+
remove-codeql: 'true'
|
| 21 |
+
remove-docker-images: 'true'
|
|
|
|
| 22 |
|
| 23 |
+
# 2. ์ฝ๋ ์ฒดํฌ์์ (LFS ํ์ผ ์ ์ธํ๊ณ ๊ฐ๋ณ๊ฒ ๋ฐ๊ธฐ)
|
| 24 |
- uses: actions/checkout@v3
|
| 25 |
with:
|
| 26 |
+
fetch-depth: 1 # ์ ์ฒด ์ญ์ฌ๊ฐ ์๋ ์ต์ ์ฝ๋๋ง ๋ฐ์ (์ฉ๋ ์ ์ฝ)
|
| 27 |
+
lfs: false # ๊ฑฐ๋ ํ์ผ(LFS) ๋ค์ด๋ก๋ ๊ธ์ง
|
| 28 |
|
| 29 |
+
# 3. Hugging Face๋ก ๋ฐฐํฌ
|
| 30 |
- name: Push to hub
|
| 31 |
env:
|
| 32 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 33 |
+
run: |
|
| 34 |
+
git config --global user.email "action@github.com"
|
| 35 |
+
git config --global user.name "GitHub Action"
|
| 36 |
+
# ๊ฐ์ ํธ์ ์ต์
(-f) ์ถ๊ฐ
|
| 37 |
+
git push -f https://wiizm:$HF_TOKEN@huggingface.co/spaces/wiizm/soyailabs main
|
dockerignore
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# .dockerignore
|
| 2 |
+
.git
|
| 3 |
+
.github
|
| 4 |
+
venv
|
| 5 |
+
env
|
| 6 |
+
__pycache__
|
| 7 |
+
*.pyc
|
| 8 |
+
*.pyo
|
| 9 |
+
*.pyd
|
| 10 |
+
.DS_Store
|
| 11 |
+
*.gguf
|
| 12 |
+
*.bin
|
| 13 |
+
models/
|
| 14 |
+
logs/
|