update ci

This commit is contained in:
felinae98 2022-02-25 11:18:40 +08:00
parent d08c880c66
commit 33533918ae
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -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