-
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 d43569c
Showing
11 changed files
with
392 additions
and
14 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"description": "TebakAja REST API Service", | ||
"title": "TebakAja", | ||
"termsOfService": "https://swagger.io/terms/", | ||
"contact": { | ||
"name": "Si Mimin", | ||
"url": "https://www.tebakaja.com", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | ||
}, | ||
"version": "1.0" | ||
}, | ||
"host": "192.168.137.1:7860", | ||
"paths": { | ||
"/crypto/lists": { | ||
"get": { | ||
"description": "Cryptocurrency List", | ||
"produces": [ | ||
"application/json" | ||
], | ||
"tags": [ | ||
"Cryptocurrency Forecasting" | ||
], | ||
"summary": "Cryptocurrency List", | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/crypto.ApiResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"crypto.ApiResponse": { | ||
"type": "object", | ||
"properties": { | ||
"data": {}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"status_code": { | ||
"type": "integer" | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
definitions: | ||
crypto.ApiResponse: | ||
properties: | ||
data: {} | ||
message: | ||
type: string | ||
status_code: | ||
type: integer | ||
type: object | ||
host: 192.168.137.1:7860 | ||
info: | ||
contact: | ||
email: [email protected] | ||
name: Si Mimin | ||
url: https://www.tebakaja.com | ||
description: TebakAja REST API Service | ||
license: | ||
name: Apache 2.0 | ||
url: http://www.apache.org/licenses/LICENSE-2.0.html | ||
termsOfService: https://swagger.io/terms/ | ||
title: TebakAja | ||
version: "1.0" | ||
paths: | ||
/crypto/lists: | ||
get: | ||
description: Cryptocurrency List | ||
produces: | ||
- application/json | ||
responses: | ||
"200": | ||
description: OK | ||
schema: | ||
$ref: '#/definitions/crypto.ApiResponse' | ||
summary: Cryptocurrency List | ||
tags: | ||
- Cryptocurrency Forecasting | ||
swagger: "2.0" |
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.