| | name: Deploy to Hugging Face |
| |
|
| | on: |
| | push: |
| | branches: |
| | - main |
| |
|
| | jobs: |
| | deploy: |
| | runs-on: ubuntu-latest |
| | steps: |
| | - name: GitHubリポジトリをチェックアウト(完全クローン) |
| | uses: actions/checkout@v3 |
| | with: |
| | fetch-depth: 0 |
| |
|
| | - name: Gitを設定 |
| | run: | |
| | git config --global user.email "your-email@example.com" |
| | git config --global user.name "your-username" |
| | |
| | - name: Hugging Faceリモートを追加 |
| | run: | |
| | git remote add hf https://user:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/kenken999/github |
| | git fetch hf |
| | |
| | - name: Hugging Faceにプッシュ |
| | run: | |
| | git push hf main --force |
| | |