Ren / .github /workflows /deploy.yml
Qusix111's picture
Add GitHub Actions workflow for Hugging Face deployment
60097ed unverified
Raw
History Blame Contribute Delete
562 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to HF Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git push https://Qusix111:$HF_TOKEN@huggingface.co/spaces/Qusix111/Ren main --force