Spaces:
Running
Running
Commit
·
7496f58
1
Parent(s):
277611f
Add spaces workflow
Browse files
.github/workflows/sync_to_space.yml
CHANGED
@@ -10,12 +10,32 @@ jobs:
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
-
-
|
|
|
14 |
with:
|
|
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
- name: Push to Hugging Face
|
19 |
env:
|
20 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
21 |
-
run: git push https://ayushnoori:[email protected]/spaces/ayushnoori/program-synthesis
|
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
+
- name: Checkout the 'spaces' branch
|
14 |
+
uses: actions/checkout@v3
|
15 |
with:
|
16 |
+
ref: 'spaces'
|
17 |
fetch-depth: 0
|
18 |
lfs: true
|
19 |
+
|
20 |
+
- name: Overwrite 'spaces' with 'main'
|
21 |
+
run: |
|
22 |
+
git checkout spaces
|
23 |
+
git reset --hard main
|
24 |
+
|
25 |
+
- name: Delete 'README.md'
|
26 |
+
run: |
|
27 |
+
rm -f README.md
|
28 |
+
|
29 |
+
- name: Rename 'spaces.md' to 'README.md'
|
30 |
+
run: |
|
31 |
+
mv spaces.md README.md
|
32 |
+
|
33 |
+
- name: Add all files and commit to 'spaces'
|
34 |
+
run: |
|
35 |
+
git add .
|
36 |
+
git commit -m "Sync main content to spaces"
|
37 |
|
38 |
- name: Push to Hugging Face
|
39 |
env:
|
40 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
41 |
+
run: git push https://ayushnoori:[email protected]/spaces/ayushnoori/program-synthesis spaces
|