youtube_auto_image1 / .github /workflows /deploy_to_hf.yml
Magenta49
Add Hugging Face deployment workflow
9e63fc8
raw
history blame contribute delete
492 Bytes
name: Deploy to Hugging Face Space
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add space https://PLXR:${HF_TOKEN}@huggingface.co/spaces/PLXR/youtube_auto_image1
git push --force space main