Spaces:
Runtime error
Runtime error
musfiqdehan
commited on
Commit
•
c6ac4b4
1
Parent(s):
3b7edd1
Add GitHub workflows for checking file size and syncing to Hugging Face Spaces
Browse files
.github/workflows/check_file_size.yml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Check File Size
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
jobs:
|
7 |
+
sync-to-hub:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
steps:
|
10 |
+
- name: Check large files
|
11 |
+
uses: ActionsDesk/lfs-warning@v3.2
|
12 |
+
with:
|
13 |
+
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
14 |
+
token: ${{ secrets.PAT_GITHUB }}
|
.github/workflows/sync_to_huggingface_space.yml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face Spaces
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
jobs:
|
7 |
+
sync-to-hub:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
steps:
|
10 |
+
- uses: actions/checkout@v4
|
11 |
+
with:
|
12 |
+
fetch-depth: 0
|
13 |
+
lfs: true
|
14 |
+
- name: Push to hub
|
15 |
+
env:
|
16 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
17 |
+
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
18 |
+
run: git push https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/Multilingual-Sentence-Alignments main
|