mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-09-03 14:32:27 +08:00
update ci
This commit is contained in:
parent
d08c880c66
commit
33533918ae
@ -199,7 +199,7 @@ jobs:
|
|||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run:
|
- run:
|
||||||
command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD
|
command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD || echo "Already pushed to pypi"
|
||||||
name: Publish to Pypi
|
name: Publish to Pypi
|
||||||
|
|
||||||
publish-github-release:
|
publish-github-release:
|
||||||
@ -213,6 +213,5 @@ jobs:
|
|||||||
name: Publish to Github Release
|
name: Publish to Github Release
|
||||||
command: |
|
command: |
|
||||||
go install github.com/tcnksm/ghr@latest
|
go install github.com/tcnksm/ghr@latest
|
||||||
VERSION=$(cat pyproject.toml | grep version | sed 's/version = "\([0-9\.]*\)"/\1/')
|
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./dist
|
||||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./dist
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user