FE_Test / .github /workflows /deploy-dev.yml
GitHub Actions
Deploy from GitHub Actions [test] - 2025-10-31 10:18:25
5f2aab6
name: Deploy to Hugging Face - Development
on:
push:
branches:
- dev
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_SPACE_NAME: ${{ secrets.HF_SPACE_NAME_DEV }}
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
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: dev
branch: ${{ github.ref_name }}
hf-username: ${{ env.HF_USERNAME }}
hf-token: ${{ env.HF_TOKEN }}
hf-space-name: ${{ env.HF_SPACE_NAME }}