CC_Smash / .github /workflows /deploy-hf.yml
alm7640's picture
feat: rewrite app in Gradio, add HF Spaces deploy workflow
00f6271
raw
history blame contribute delete
692 Bytes
name: Deploy to HuggingFace Spaces
on:
push:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
deploy:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push to HuggingFace Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git remote add space https://alm7640:$HF_TOKEN@huggingface.co/spaces/alm7640/CC_Smash
git push space main --force