Spaces:
Sleeping
Sleeping
うみゅ
commited on
Update deploy.yml
Browse files
.github/workflows/deploy.yml
CHANGED
@@ -1,7 +1,9 @@
|
|
|
|
1 |
name: "Deploy"
|
2 |
on:
|
3 |
push:
|
4 |
branches: [ "main" ]
|
|
|
5 |
workflow_dispatch:
|
6 |
|
7 |
jobs:
|
@@ -12,9 +14,7 @@ jobs:
|
|
12 |
- uses: actions/checkout@v4
|
13 |
with:
|
14 |
fetch-depth: 0
|
15 |
-
lfs: true
|
16 |
-
- name: Set remote URL
|
17 |
-
run: git remote set-url origin ${{ secrets.PRODUCTION_SERVER }}
|
18 |
|
19 |
- name: Push to hub
|
20 |
-
run: git push --force
|
|
|
1 |
+
# このワークフローは、gitコマンドを使用しデプロイを行います。
|
2 |
name: "Deploy"
|
3 |
on:
|
4 |
push:
|
5 |
branches: [ "main" ]
|
6 |
+
# ワークフローの手動実行を許可する
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
|
|
14 |
- uses: actions/checkout@v4
|
15 |
with:
|
16 |
fetch-depth: 0
|
17 |
+
lfs: true
|
|
|
|
|
18 |
|
19 |
- name: Push to hub
|
20 |
+
run: git push --force https://${{ secrets.HF_USER_NAME }}:${{ secrets.HF_TOKEN }}@${{ secrets.HF_SPACE_URL }} main
|