-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3c13b7
commit f118f03
Showing
17 changed files
with
1,366 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ jobs: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
SPACE_NAME: tebakaja_proxy_space-0 | ||
HF_USERNAME: qywok | ||
ENDPOINT: qywok-tebakaja-proxy-space-0.hf.space | ||
|
||
steps: | ||
- name: Set global directory | ||
|
@@ -58,10 +59,16 @@ jobs: | |
git pull https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main || \ | ||
(git merge --strategy-option theirs) | ||
- name: Change Endpoint | ||
run: | | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/docs.go | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/swagger.json | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/swagger.yaml | ||
- name: Add and commit changes | ||
run: | | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -m "tebakaja_proxy_space-0" | ||
git diff-index --quiet HEAD || git commit -m "$SPACE_NAME" | ||
- name: Push to Hugging Face | ||
run: | | ||
|
@@ -78,6 +85,7 @@ jobs: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
SPACE_NAME: tebakaja_proxy_space-1 | ||
HF_USERNAME: qywok | ||
ENDPOINT: qywok-tebakaja-proxy-space-1.hf.space | ||
|
||
steps: | ||
- name: Set global directory | ||
|
@@ -101,10 +109,16 @@ jobs: | |
git pull https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main || \ | ||
(git merge --strategy-option theirs) | ||
- name: Change Endpoint | ||
run: | | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/docs.go | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/swagger.json | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/swagger.yaml | ||
- name: Add and commit changes | ||
run: | | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -m "tebakaja_proxy_space-1" | ||
git diff-index --quiet HEAD || git commit -m "$SPACE_NAME" | ||
- name: Push to Hugging Face | ||
run: | | ||
|
@@ -121,6 +135,7 @@ jobs: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
SPACE_NAME: tebakaja_proxy_space-2 | ||
HF_USERNAME: qywok | ||
ENDPOINT: qywok-tebakaja-proxy-space-2.hf.space | ||
|
||
steps: | ||
- name: Set global directory | ||
|
@@ -144,10 +159,16 @@ jobs: | |
git pull https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$SPACE_NAME main || \ | ||
(git merge --strategy-option theirs) | ||
- name: Change Endpoint | ||
run: | | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/docs.go | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/swagger.json | ||
sed -i "s/192.168.137.1:7860/$ENDPOINT/g" docs/swagger.yaml | ||
- name: Add and commit changes | ||
run: | | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -m "tebakaja_proxy_space-2" | ||
git diff-index --quiet HEAD || git commit -m "$SPACE_NAME" | ||
- name: Push to Hugging Face | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.