Spaces:
Sleeping
Sleeping
Ghub action files
Browse files- .github/workflows/check.yml +16 -0
- .github/workflows/deploy-to-hf.yml +0 -26
- .github/workflows/main.yml +21 -0
.github/workflows/check.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Check file size
|
| 2 |
+
on:
|
| 3 |
+
pull_request:
|
| 4 |
+
branches: [main]
|
| 5 |
+
|
| 6 |
+
# to run this workflow manually from the Actions tab
|
| 7 |
+
workflow_dispatch:
|
| 8 |
+
|
| 9 |
+
jobs:
|
| 10 |
+
sync-to-hub:
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
steps:
|
| 13 |
+
- name: Check large files
|
| 14 |
+
uses: ActionsDesk/[email protected]
|
| 15 |
+
with:
|
| 16 |
+
filesizelimit: 1048576000 # this is 1000MB
|
.github/workflows/deploy-to-hf.yml
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
name: Deploy to Hugging Face Spaces
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
push:
|
| 5 |
-
branches:
|
| 6 |
-
- main # or the branch you want to trigger the deployment from
|
| 7 |
-
|
| 8 |
-
jobs:
|
| 9 |
-
deploy:
|
| 10 |
-
runs-on: ubuntu-latest
|
| 11 |
-
steps:
|
| 12 |
-
- name: Checkout repository
|
| 13 |
-
uses: actions/checkout@v2
|
| 14 |
-
|
| 15 |
-
- name: Install Git Large File Storage (LFS)
|
| 16 |
-
run: |
|
| 17 |
-
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
|
| 18 |
-
sudo apt-get install git-lfs
|
| 19 |
-
git lfs install
|
| 20 |
-
|
| 21 |
-
- name: Push to Hugging Face
|
| 22 |
-
env:
|
| 23 |
-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 24 |
-
run: |
|
| 25 |
-
git remote add hf https://huggingface.co/spaces/soutrik/EraV2_S20_Tokenization
|
| 26 |
-
git push hf main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/main.yml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face hub
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
|
| 6 |
+
# to run this workflow manually from the Actions tab
|
| 7 |
+
workflow_dispatch:
|
| 8 |
+
|
| 9 |
+
jobs:
|
| 10 |
+
sync-to-hub:
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
steps:
|
| 13 |
+
- uses: actions/checkout@v3
|
| 14 |
+
with:
|
| 15 |
+
fetch-depth: 0
|
| 16 |
+
lfs: true
|
| 17 |
+
- name: Push to hub
|
| 18 |
+
env:
|
| 19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 20 |
+
HF_USERNAME: soutrik71
|
| 21 |
+
run: git push https://$HF_USERNAME:[email protected]/spaces/soutrik/EraV2_S20_Tokenization main
|