Almaatla Claude commited on
Commit
cd869cb
·
unverified ·
1 Parent(s): cb1e234

Add GitHub Actions workflow to deploy to HF Space on push to main (#1)

Browse files

Pushes the repo to huggingface.co/spaces/OrganizedProgrammers/SERPent
using the HF_TOKEN repo secret.


Claude-Session: https://claude.ai/code/session_012sXQyRk3EZHbYHas8fQsiS

Co-authored-by: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. .github/workflows/deploy-to-hf.yml +23 -0
.github/workflows/deploy-to-hf.yml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
+
18
+ - name: Push to Hugging Face Space
19
+ env:
20
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
21
+ run: |
22
+ git remote add space https://hf-actions-bot:${HF_TOKEN}@huggingface.co/spaces/OrganizedProgrammers/SERPent
23
+ git push --force space HEAD:main