Commit
·
1bf22eb
1
Parent(s):
1dafcd7
update
Browse files- .github/workflows/test.yml +30 -0
.github/workflows/test.yml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Deploy to Hugging Face
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main # またはデプロイしたいブランチを指定
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
deploy:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
steps:
|
12 |
+
- name: GitHubリポジトリをチェックアウト
|
13 |
+
uses: actions/checkout@v3
|
14 |
+
|
15 |
+
- name: Gitを設定
|
16 |
+
run: |
|
17 |
+
git config --global user.email "[email protected]"
|
18 |
+
git config --global user.name "your-username"
|
19 |
+
|
20 |
+
- name: Hugging Faceリモートを追加
|
21 |
+
run: |
|
22 |
+
git remote add hf git https://huggingface.co/spaces/kenken999/github
|
23 |
+
git fetch hf
|
24 |
+
git branch --set-upstream-to=hf/main main
|
25 |
+
|
26 |
+
- name: Hugging Faceにプッシュ
|
27 |
+
env:
|
28 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
29 |
+
run: |
|
30 |
+
git push https://user:[email protected]/<your-username>/<existing-repo> main
|