WEB.BUILDING.GENIOUS / huggingface-deploy.yml
Humbl3m33's picture
Upload 5 files
81c67ff verified
raw
history blame contribute delete
634 Bytes
name: Deploy to HuggingFace Spaces
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build application
run: npm run build
- name: Deploy to HuggingFace Spaces
uses: huggingface/huggingface_hub@main
with:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
space_id: ${{ secrets.HF_SPACE_ID }}
dockerfile: "Dockerfile"