Spaces:
Sleeping
Sleeping
Merge pull request #1 from vinay-jose/main
Browse files- .github/workflows/main.yml +23 -0
.github/workflows/main.yml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Deploy to Hugging Face Spaces
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- '03-a-web-1.0-application'
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
deploy:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
steps:
|
12 |
+
- uses: actions/checkout@v4
|
13 |
+
with:
|
14 |
+
fetch-depth: 0
|
15 |
+
lfs: false
|
16 |
+
|
17 |
+
- name: Push to HF Spaces
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: |
|
21 |
+
git config --global user.email "actions@github.com"
|
22 |
+
git config --global user.name "GitHub Actions"
|
23 |
+
git push https://HuggingFaceBot:$HF_TOKEN@huggingface.co/spaces/vinay-jose/$GITHUB_REF_NAME $GITHUB_REF_NAME:main
|