Spaces:
Sleeping
Sleeping
Download .github/workflows/deploy-test.yml from KazukiWatanabe/FE_Dev: direct link, hf CLI and curl.
- Browser
- Download file 945 Bytes
-
https://huggingface.co/spaces/KazukiWatanabe/FE_Dev/resolve/main/.github/workflows/deploy-test.yml
- Command line
-
hf download hf://spaces/KazukiWatanabe/FE_Dev/.github/workflows/deploy-test.yml
-
curl -L -o deploy-test.yml https://huggingface.co/spaces/KazukiWatanabe/FE_Dev/resolve/main/.github/workflows/deploy-test.yml
945 Bytes
| name: Deploy to Hugging Face Test | |
| on: | |
| push: | |
| branches: | |
| - feature/ui-test | |
| workflow_dispatch: | |
| env: | |
| HF_USERNAME: ${{ secrets.HF_USERNAME }} | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| HF_SPACE_NAME: FE_Test | |
| jobs: | |
| sync-to-huggingface-mock: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build application | |
| run: npm run build | |
| - name: Deploy to Hugging Face Space | |
| uses: ./.github/actions/deploy-to-hf | |
| with: | |
| environment: test | |
| branch: ${{ github.ref_name }} | |
| hf-username: ${{ env.HF_USERNAME }} | |
| hf-token: ${{ env.HF_TOKEN }} | |
| hf-space-name: ${{ env.HF_SPACE_NAME }} | |