ydmhmhm's picture
feat: gracefully handle missing HF token and add API landing page
bcafa1f
Raw
History Blame Contribute Delete
469 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git remote add hf https://ydmhmhm:$HF_TOKEN@huggingface.co/spaces/ydmhmhm/scholarshipid
git push hf HEAD:main --force