postquest / .github /workflows /sync_to_hugging_face_hub.yml
aditya.bhendavadekar
Update sync_to_hugging_face_hub.yml
e4e13c5 unverified
raw
history blame
No virus
641 Bytes
name: Sync to Hugging Face hub
on:
push:
branches: [main]
# to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add remote
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git remote add space https://adi1193:$HF_TOKEN@huggingface.co/spaces/adi1193/postquest
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git push --force https://adi1193:$HF_TOKEN@huggingface.co/spaces/adi1193/postquest main