update ci

This commit is contained in:
felinae98 2021-12-06 16:52:53 +08:00
parent be69bad0bb
commit c9dd21f5c0
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -139,12 +139,13 @@ jobs:
docker:
- image: circleci/golang:1.17
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Publish to Github Release
command: |
go get github.com/tcnksm/ghr
go install github.com/tcnksm/ghr
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