mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
fix: fixed semver job and upgraded to v9
This commit is contained in:
@ -197,16 +197,15 @@ semver:
|
|||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- git tag
|
- git tag
|
||||||
|
|
||||||
# build
|
# build and publish package
|
||||||
- pip install python-semantic-release==7.* wheel
|
- pip install python-semantic-release==9.* wheel build twine
|
||||||
- export GL_TOKEN=$CI_UPDATES
|
- export GL_TOKEN=$CI_UPDATES
|
||||||
- export REPOSITORY_USERNAME=__token__
|
- semantic-release -vv version
|
||||||
- export REPOSITORY_PASSWORD=$CI_PYPI_TOKEN
|
|
||||||
- >
|
# check if any artifacts were created
|
||||||
semantic-release publish -v DEBUG
|
- if [ ! -d dist ]; then echo No release will be made; exit 0; fi
|
||||||
-D version_variable=./setup.py:__version__
|
- twine upload dist/* -u __token__ -p $CI_PYPI_TOKEN --skip-existing
|
||||||
-D hvcs=gitlab
|
- semantic-release publish
|
||||||
-D branch=main
|
|
||||||
|
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
rules:
|
rules:
|
||||||
|
@ -55,3 +55,40 @@ profile = "black"
|
|||||||
line_length = 100
|
line_length = 100
|
||||||
multi_line_output = 3
|
multi_line_output = 3
|
||||||
include_trailing_comma = true
|
include_trailing_comma = true
|
||||||
|
|
||||||
|
[tool.semantic_release]
|
||||||
|
build_command = "python -m build"
|
||||||
|
version_toml = ["pyproject.toml:project.version"]
|
||||||
|
|
||||||
|
[tool.semantic_release.commit_author]
|
||||||
|
env = "GIT_COMMIT_AUTHOR"
|
||||||
|
default = "semantic-release <semantic-release>"
|
||||||
|
|
||||||
|
[tool.semantic_release.commit_parser_options]
|
||||||
|
allowed_tags = [
|
||||||
|
"build",
|
||||||
|
"chore",
|
||||||
|
"ci",
|
||||||
|
"docs",
|
||||||
|
"feat",
|
||||||
|
"fix",
|
||||||
|
"perf",
|
||||||
|
"style",
|
||||||
|
"refactor",
|
||||||
|
"test",
|
||||||
|
]
|
||||||
|
minor_tags = ["feat"]
|
||||||
|
patch_tags = ["fix", "perf"]
|
||||||
|
default_bump_level = 0
|
||||||
|
|
||||||
|
[tool.semantic_release.remote]
|
||||||
|
name = "origin"
|
||||||
|
type = "gitlab"
|
||||||
|
ignore_token_for_push = false
|
||||||
|
|
||||||
|
[tool.semantic_release.remote.token]
|
||||||
|
env = "GL_TOKEN"
|
||||||
|
|
||||||
|
[tool.semantic_release.publish]
|
||||||
|
dist_glob_patterns = ["dist/*"]
|
||||||
|
upload_to_vcs_release = true
|
||||||
|
Reference in New Issue
Block a user