ocr / .github /workflows /main.yml
pnicewiczoig's picture
Create .github/workflows/main.yml
f6eaedf
Raw
History Blame Contribute Delete
670 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.YOLOV8_STREAMLIT }}
run: git remote add space https://pnicewiczoig:$HF_TOKEN@huggingface.co/spaces/pnicewiczoig/ml_deploy
- name: push to Hub
env:
HF_TOKEN: ${{ secrets.YOLOV8_STREAMLIT }}
run: git push --force https://pnicewiczoig:$HF_TOKEN@huggingface.co/spaces/pnicewiczoig/ml_deploy