caretable / .github /workflows /deploy.yml
zzangtest's picture
feat: initial release without tracked binary images
b289b19
Raw
History Blame Contribute Delete
954 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches:
- main
# GitHub Actions ํƒญ์—์„œ ์ˆ˜๋™ ์‹คํ–‰ ํ—ˆ์šฉ
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Git Credentials & Push to HF
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
# ๋ณธ์ธ์˜ Hugging Face Username ๋ฐ Space Name์— ๋งž์ถฐ ๋ณ€๊ฒฝํ•˜์‹ญ์‹œ์˜ค.
HF_USERNAME: "HwangJinwook"
HF_SPACE_NAME: "caretable"
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
# Hugging Face Spaces Git Remote ์ถ”๊ฐ€ ๋ฐ ๊ฐ•์ œ ํ‘ธ์‹œ (Docker ๋ฐฐํฌ ์ง„ํ–‰)
git remote add hf https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$HF_SPACE_NAME
git push --force hf main