Download .github/workflows/depoly.yml from Chemically-motivated/OSINT_Tool: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/Chemically-motivated/OSINT_Tool/resolve/eaf7e5a29d4545680d327f7a30d7b3aef9c1fbc0/.github/workflows/depoly.yml
- Command line
-
hf download hf://spaces/Chemically-motivated/OSINT_Tool@eaf7e5a29d4545680d327f7a30d7b3aef9c1fbc0/.github/workflows/depoly.yml
-
curl -L -o depoly.yml https://huggingface.co/spaces/Chemically-motivated/OSINT_Tool/resolve/eaf7e5a29d4545680d327f7a30d7b3aef9c1fbc0/.github/workflows/depoly.yml
832 Bytes
| name: Deploy to Hugging Face Spaces | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.8' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Push to Hugging Face Spaces | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git remote add space https://huggingface.co/spaces/HF_USERNAME/SPACE_NAME | |
| git push https://HF_USERNAME:${HF_TOKEN}@huggingface.co/spaces/HF_USERNAME/SPACE_NAME main | |