-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 30ae09b Author: OhYee <[email protected]> Date: Mon Oct 30 09:08:44 2023 +0800 release v10 commit e33e212 Author: 孔晨皓(鸥弋)(OhYee) <[email protected]> Date: Sun Oct 29 00:24:28 2023 +0800 feat: set default filemgr version to 1.2.1 commit ec1f7da Author: OhYee <[email protected]> Date: Thu Oct 26 03:34:51 2023 -0500 use filemgr 1.2.0 commit 9943605 Author: OhYee <[email protected]> Date: Wed Oct 25 16:59:08 2023 +0800 support lite version commit 5fa1d99 Author: OhYee <[email protected]> Date: Wed Oct 25 16:50:01 2023 +0800 set japan as default region commit 00f51b2 Author: OhYee <[email protected]> Date: Tue Oct 24 17:16:17 2023 +0800 fix: release all three packages commit 0e209cb Author: OhYee <[email protected]> Date: Tue Oct 24 17:10:32 2023 +0800 download filemgr before deploy commit d9ebc66 Author: OhYee <[email protected]> Date: Tue Oct 24 16:56:50 2023 +0800 add ap-south-east-1 commit c6a1738 Author: OhYee <[email protected]> Date: Tue Oct 24 14:51:52 2023 +0800 release v9
- Loading branch information
Showing
1,426 changed files
with
535 additions
and
377,647 deletions.
There are no files selected for viewing
This file was deleted.
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,56 @@ | ||
name: release dev version to serverless-hub | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- dev | ||
- 'dev/**' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
pip install requests | ||
- name: NPM install | ||
run: | | ||
npm install --production | ||
- name: Add publish file | ||
run: | | ||
wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py | ||
ls | ||
- name: Publish package | ||
env: | ||
publish_token: ${{ secrets.alibaba_registry_publish_token }} | ||
run: | | ||
export TAG="dev" | ||
echo "release fc-stable-diffusion" | ||
sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml | ||
python hub-publish.py | ||
echo "release fc-stable-diffusion-plus" | ||
mv publish-plus.yaml publish.yaml | ||
mv readme-plus.md readme.md | ||
sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml | ||
python hub-publish.py | ||
echo "release fc-stable-diffusion-api" | ||
mv publish-api.yaml publish.yaml | ||
mv readme-api.md readme.md | ||
sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml | ||
python hub-publish.py |
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,83 @@ | ||
name: release package to serverless-hub | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
pip install requests | ||
- name: NPM install | ||
run: | | ||
npm install --production | ||
- name: Add publish file | ||
run: | | ||
wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py | ||
ls | ||
- name: Publish package | ||
env: | ||
publish_token: ${{ secrets.alibaba_registry_publish_token }} | ||
release_body: ${{ github.event.release.body }} | ||
release_name: ${{ github.event.release.name }} | ||
run: | | ||
if [[ -e "${release_body}" ]]; then | ||
TAG=$(git describe --tags --always | sed 's/^v//') | ||
echo "release ${TAG}" | ||
echo "release fc-stable-diffusion" | ||
sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml | ||
python hub-publish.py | ||
echo "release fc-stable-diffusion-plus" | ||
mv publish-plus.yaml publish.yaml | ||
mv readme-plus.md readme.md | ||
sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml | ||
python hub-publish.py | ||
echo "release fc-stable-diffusion-api" | ||
mv publish-api.yaml publish.yaml | ||
mv readme-api.md readme.md | ||
sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml | ||
python hub-publish.py | ||
else | ||
if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion(?!-)') ]]; then | ||
echo "release fc-stable-diffusion" | ||
python hub-publish.py | ||
fi | ||
if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion-plus') ]]; then | ||
echo "release fc-stable-diffusion-plus" | ||
mv publish-plus.yaml publish.yaml | ||
mv readme-plus.md readme.md | ||
python hub-publish.py | ||
fi | ||
if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion-api') ]]; then | ||
echo "release fc-stable-diffusion-api" | ||
mv publish-api.yaml publish.yaml | ||
mv readme-api.md readme.md | ||
python hub-publish.py | ||
fi | ||
fi | ||
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
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.