piranware_v2 / .github /workflows /sync_to_hf.yml
ashandilgith's picture
second commit
4fbc175
raw
history blame contribute delete
679 Bytes
name: Sync to Hugging Face Space
on:
push:
branches: [ main ]
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "ashandilgith@users.noreply.github.com"
git config --global user.name "Ashan Dilgith"
# This command pushes your code to your specific HF Space
git remote add space https://ashandilgith:$HF_TOKEN@huggingface.co/spaces/ashandilgith/piranware_v2
git push --force space main