Skip to content

Commit

Permalink
Merge branch 'automatic-merge' into 'master'
Browse files Browse the repository at this point in the history
Update cookiecutter-e3 template

See merge request it/e3-aws!15
  • Loading branch information
adanaja committed Oct 24, 2024
2 parents 4898888 + e5f1c78 commit 06ba94a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ stages:
- checks
- tests linux
- tests windows
- upload

default:
services:
Expand Down Expand Up @@ -192,3 +193,23 @@ run windows tests:
# Are you sure you want to run Windows tests?
#
# This is only useful if the previous stages have failed and you still want to run the tests.

upload-python-registry:
extends: .linux-image
stage: upload
before_script:
- !reference [.linux-image, before_script]
- python -m pip install twine
script:
- CURRENT_DATE=$(date +"%Y%m%d%H%M")
- sed -i "s|[0-9][0-9.]*|&.${CURRENT_DATE}|" VERSION
- python -m pip wheel . -q --no-deps -C--python-tag=py3 -w build
- python -m twine upload --skip-existing
--repository-url https://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/202/packages/pypi
build/*.whl
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
PYTHON_VERSION: "3.11"
TWINE_PASSWORD: $CI_JOB_TOKEN
TWINE_USERNAME: gitlab-ci-token

0 comments on commit 06ba94a

Please sign in to comment.