This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync to Hugging Face hub | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
sync-to-hub: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Push to Hugging Face hub | |
env: | |
HF_TOKEN: ${{ secrets.HF_SECRET }} | |
run: | | |
git remote remove origin || true | |
git remote add origin https://Ashad001:${{ secrets.HF_SECRET }}@huggingface.co/spaces/Ashad001/roomaligner | |
git add . | |
git commit -m "Sync code to Hugging Face Hub" || true | |
git push --force origin main |