finalazing pipline
This commit is contained in:
parent
474a588069
commit
4c0c891376
2 changed files with 10 additions and 4 deletions
|
@ -12,19 +12,21 @@ gitversion:
|
|||
stage: .pre
|
||||
tags:
|
||||
- gitlab-org-docker
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: python:3.9.21
|
||||
tags:
|
||||
- gitlab-org-docker
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
||||
needs:
|
||||
- job: gitversion
|
||||
artifacts: true
|
||||
script:
|
||||
- sed -i "s/0.0.1/${GitVersion_MajorMinorPatch}a${GitVersion_BuildMetaData}/" src/optima35/__init__.py
|
||||
- sed -i "s/0.0.1/${GitVersion_MajorMinorPatch}" src/optima35/__init__.py
|
||||
- cat src/optima35/__init__.py
|
||||
- python3 -m pip install build
|
||||
- python3 -m build
|
||||
|
@ -38,6 +40,8 @@ publish:
|
|||
image: python:3.9.21
|
||||
tags:
|
||||
- gitlab-org-docker
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
|
||||
variables:
|
||||
TWINE_USERNAME: "__token__"
|
||||
TWINE_PASSWORD: $TWINE_API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue