Spaces:
Paused
Paused
| 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 | |