mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
update ci
This commit is contained in:
parent
d08c880c66
commit
33533918ae
@ -199,7 +199,7 @@ jobs:
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- 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
|
||||
|
||||
publish-github-release:
|
||||
@ -213,6 +213,5 @@ jobs:
|
||||
name: Publish to Github Release
|
||||
command: |
|
||||
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 ${VERSION} ./dist
|
||||
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./dist
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user