Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
Commit
•
74adb4f
1
Parent(s):
177e5c1
Create sync_to_huggingspace_hub.yml
Browse files
.github/workflows/sync_to_huggingspace_hub.yml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: LFS Install
|
18 |
+
run: git lfs install
|
19 |
+
- name: LFS Track
|
20 |
+
run: git lfs track *.pdf
|
21 |
+
- name: Checkout LFS objects
|
22 |
+
run: git lfs checkout
|
23 |
+
- name: Push to hub
|
24 |
+
env:
|
25 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
26 |
+
run: git push --force https://KushwanthK:$HF_TOKEN@huggingface.co/spaces/KushwanthK/Generative-AI-Data-Retrieval main
|