Spaces:
Sleeping
Sleeping
Download .github/workflows/python-app.yml from AnkurGoswami/test: direct link, hf CLI and curl.
- Browser
- Download file 839 Bytes
-
https://huggingface.co/spaces/AnkurGoswami/test/resolve/main/.github/workflows/python-app.yml
- Command line
-
hf download hf://spaces/AnkurGoswami/test/.github/workflows/python-app.yml
-
curl -L -o python-app.yml https://huggingface.co/spaces/AnkurGoswami/test/resolve/main/.github/workflows/python-app.yml
839 Bytes
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
| name: Sync to HF | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - test | |
| jobs: | |
| sync-to-hub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push to Hugging Face | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "GitHub Actions" | |
| git remote add space \ | |
| https://AnkurGoswami:$HF_TOKEN@huggingface.co/spaces/AnkurGoswami/ALAS-demo | |
| git push --force space HEAD:main | |