Spaces:
Runtime error
Runtime error
Junbo Koh
commited on
Commit
•
9c7f56e
1
Parent(s):
d19da7b
Create cd.yml
Browse filesManage HF Space with github actions
- .github/workflows/cd.yml +23 -0
.github/workflows/cd.yml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- master
|
7 |
+
paths-ignore: ["/README.md"]
|
8 |
+
|
9 |
+
workflow_dispatch:
|
10 |
+
|
11 |
+
jobs:
|
12 |
+
sync-to-hub:
|
13 |
+
runs-on: ubuntu-latest
|
14 |
+
steps:
|
15 |
+
- uses: actions/checkout@v3
|
16 |
+
with:
|
17 |
+
fetch-depth: 0
|
18 |
+
lfs: true
|
19 |
+
- name: Push to hub
|
20 |
+
env:
|
21 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
22 |
+
run: git push https://Ridealist:$HF_TOKEN@huggingface.co/spaces/Ridealist/chat_bot main
|
23 |
+
|