add workflow action
Browse files- .github/workflows/main.yml +27 -0
.github/workflows/main.yml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Deploy to Hugging Face Space
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
deploy:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
|
12 |
+
steps:
|
13 |
+
- name: Checkout full repo
|
14 |
+
uses: actions/checkout@v3
|
15 |
+
|
16 |
+
- name: Configure Git
|
17 |
+
run: |
|
18 |
+
git config --global user.email "dev.abdullah.khaled@gmail.com"
|
19 |
+
git config --global user.name "Abdullah Khaled"
|
20 |
+
|
21 |
+
- name: Push to Hugging Face Space
|
22 |
+
run: |
|
23 |
+
git remote add space https://abdullah-khaled:${HF_TOKEN}@huggingface.co/spaces/abdullah-khaled/ai-voice-secretary
|
24 |
+
git lfs push space main --all
|
25 |
+
git push space main --force
|
26 |
+
env:
|
27 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|