mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-08 04:43:00 +08:00
update to 0.4.2, fix pypi build
This commit is contained in:
parent
e106de94a5
commit
edebde7b51
@ -24,7 +24,7 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
- build-publish:
|
- build:
|
||||||
requires:
|
requires:
|
||||||
- test
|
- test
|
||||||
filters:
|
filters:
|
||||||
@ -32,6 +32,12 @@ workflows:
|
|||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
tags:
|
tags:
|
||||||
only: /^v.*/
|
only: /^v.*/
|
||||||
|
- publish-pypi:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
- publish-github-release:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
- docker/publish: &docker-push
|
- docker/publish: &docker-push
|
||||||
requires:
|
requires:
|
||||||
- test
|
- test
|
||||||
@ -92,17 +98,42 @@ jobs:
|
|||||||
command: poetry run coverage html --include='src/*'
|
command: poetry run coverage html --include='src/*'
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: htmlcov
|
path: htmlcov
|
||||||
build-publish:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/python:3.9
|
- image: cimg/python:3.9
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: .src/plugins/nonebot_bison/admin_page/dist/
|
||||||
- run: poetry build
|
- run: poetry build
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: dist
|
path: "dist"
|
||||||
- swissknife/publish_github_release:
|
- persist_to_workspace:
|
||||||
tag: ${CIRCLE_TAG}
|
root: .
|
||||||
|
paths:
|
||||||
|
- "dist"
|
||||||
|
publish-pypi:
|
||||||
|
docker:
|
||||||
|
- image: cimg/python3.9
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: ./dist
|
||||||
- run:
|
- run:
|
||||||
command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD
|
command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD
|
||||||
name: publish to pypi
|
name: Publish to Pypi
|
||||||
|
|
||||||
|
publish-github-release:
|
||||||
|
docker:
|
||||||
|
- image: circleci/golang:1.8
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: ./dist
|
||||||
|
- run:
|
||||||
|
name: Publish to Github Release
|
||||||
|
command: |
|
||||||
|
go get 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
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "nonebot-bison"
|
name = "nonebot-bison"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
description = "Subscribe message from social medias"
|
description = "Subscribe message from social medias"
|
||||||
authors = ["felinae98 <felinae225@qq.com>"]
|
authors = ["felinae98 <felinae225@qq.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user