Spaces:
Running
Running
Vikrant Honbute commited on
Create deploy-to-hf.yml
Browse files
.github/workflows/deploy-to-hf.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Deploy to Hugging Face Space
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
workflow_dispatch:
|
| 8 |
+
|
| 9 |
+
jobs:
|
| 10 |
+
deploy:
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
|
| 13 |
+
steps:
|
| 14 |
+
- name: Checkout repository
|
| 15 |
+
uses: actions/checkout@v3
|
| 16 |
+
with:
|
| 17 |
+
fetch-depth: 0
|
| 18 |
+
lfs: true
|
| 19 |
+
|
| 20 |
+
- name: Configure git
|
| 21 |
+
run: |
|
| 22 |
+
git config user.name "github-actions"
|
| 23 |
+
git config user.email "github-actions@github.com"
|
| 24 |
+
|
| 25 |
+
- name: Add Hugging Face remote
|
| 26 |
+
run: |
|
| 27 |
+
git remote add hf https://viki77:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/viki77/SnapSummaryAI
|
| 28 |
+
|
| 29 |
+
- name: Push to Hugging Face (force)
|
| 30 |
+
run: |
|
| 31 |
+
git push hf main --force
|