name: Deploy to Hugging Face - Production on: push: branches: - main env: HF_USERNAME: ${{ secrets.HF_USERNAME }} HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_SPACE_NAME: ${{ secrets.HF_SPACE_NAME_PROD }} jobs: deploy: 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: prod branch: ${{ github.ref_name }} hf-username: ${{ env.HF_USERNAME }} hf-token: ${{ env.HF_TOKEN }} hf-space-name: ${{ env.HF_SPACE_NAME }} - name: Create Tag and Release uses: ./.github/actions/create-release with: branch: main tag-prefix: main- prerelease: false release-name-prefix: Production Release