Spaces:
Runtime error
Runtime error
SK Md Shahid
commited on
Update and rename deploy.yml to sync_to_hf_hub.yml
Browse files
.github/workflows/deploy.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
name: Deploy to Hugging Face Spaces
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
branches:
|
6 |
-
- main
|
7 |
-
|
8 |
-
jobs:
|
9 |
-
deploy:
|
10 |
-
runs-on: ubuntu-latest
|
11 |
-
steps:
|
12 |
-
- name: Check out repository
|
13 |
-
uses: actions/checkout@v2
|
14 |
-
|
15 |
-
- name: Deploy to Hugging Face Spaces
|
16 |
-
uses: huggingface/github-action-deploy-spaces@main
|
17 |
-
with:
|
18 |
-
hf_token: ${{ secrets.HF_TOKEN }}
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/sync_to_hf_hub.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
run: git push https://Sk4467:[email protected]/spaces/Sk4467/Bengali_translator main
|