Download .github/workflows/deploy-dev-en.yml from macgaga/FireRed-Experimental-Turbo: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/macgaga/FireRed-Experimental-Turbo/resolve/main/.github/workflows/deploy-dev-en.yml
- Command line
-
hf download hf://spaces/macgaga/FireRed-Experimental-Turbo/.github/workflows/deploy-dev-en.yml
-
curl -L -o deploy-dev-en.yml https://huggingface.co/spaces/macgaga/FireRed-Experimental-Turbo/resolve/main/.github/workflows/deploy-dev-en.yml
1.32 kB
| name: Deploy to dev-en Space | |
| on: | |
| push: | |
| branches: [develop] | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: deploy-dev-en | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Push to Hugging Face Space (dev-en) | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| HF_SPACE_ID: ${{ vars.HF_SPACE_ID_DEV_EN }} | |
| run: | | |
| if [ -z "$HF_TOKEN" ]; then | |
| echo "::error::HF_TOKEN secret is not set on this repo (Settings > Secrets and variables > Actions)." | |
| exit 1 | |
| fi | |
| if [ -z "$HF_SPACE_ID" ]; then | |
| echo "::error::HF_SPACE_ID_DEV_EN variable is not set on this repo (Settings > Secrets and variables > Actions > Variables), format: <owner>/<space-name>." | |
| exit 1 | |
| fi | |
| git remote add space "https://user:${HF_TOKEN}@huggingface.co/spaces/${HF_SPACE_ID}" | |
| # No --force: a non-fast-forward push means the Space diverged from GitHub | |
| # (e.g. edited directly in the HF UI) and needs a human to reconcile it, | |
| # rather than silently overwriting that history. | |
| git push space HEAD:main | |