diff --git a/.github/workflows/yaml_to_act.yml b/.github/workflows/yaml_to_act.yml new file mode 100644 index 0000000..a8bf91f --- /dev/null +++ b/.github/workflows/yaml_to_act.yml @@ -0,0 +1,18 @@ +name: Sync to Hugging Face hub +on: + push: + branches: [main] + workflow_dispatch: + +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 push --force https://narendra-bluebash:$HF_TOKEN@huggingface.co/spaces/narendra-bluebash/streamlit_unstructured main