Loading pipelines/python/semantic-release.yml +4 −0 Original line number Diff line number Diff line --- include: - local: "alm/semantic-release.yml" - local: "python/semantic-release/version.yml" - local: "python/build.yml" - local: "python/twine.yml" Loading @@ -8,6 +9,9 @@ python:build: rules: - if: $CI_COMMIT_TAG semantic-release: needs: ["python:semantic-release:version"] python:twine: rules: - if: $CI_COMMIT_TAG Loading python/semantic-release/version.yml 0 → 100644 +15 −0 Original line number Diff line number Diff line --- python:semantic-release:version: image: registry.gitlab.com/notno/python-semantic-releaser:3.9 stage: build script: - pip install python-semantic-release # 1. semantic release will bump versions in files -> we want this # 2. THEN it will try to commit to git -> we don't want this! -> we let it fail and hide the output - env -u GIT_EMAIL -u GIT_USERNAME semantic-release version &>/dev/null || true # 3. all changed files are passed as artifacts to the next stages artifacts: paths: - ./* exclude: - .git Loading
pipelines/python/semantic-release.yml +4 −0 Original line number Diff line number Diff line --- include: - local: "alm/semantic-release.yml" - local: "python/semantic-release/version.yml" - local: "python/build.yml" - local: "python/twine.yml" Loading @@ -8,6 +9,9 @@ python:build: rules: - if: $CI_COMMIT_TAG semantic-release: needs: ["python:semantic-release:version"] python:twine: rules: - if: $CI_COMMIT_TAG Loading
python/semantic-release/version.yml 0 → 100644 +15 −0 Original line number Diff line number Diff line --- python:semantic-release:version: image: registry.gitlab.com/notno/python-semantic-releaser:3.9 stage: build script: - pip install python-semantic-release # 1. semantic release will bump versions in files -> we want this # 2. THEN it will try to commit to git -> we don't want this! -> we let it fail and hide the output - env -u GIT_EMAIL -u GIT_USERNAME semantic-release version &>/dev/null || true # 3. all changed files are passed as artifacts to the next stages artifacts: paths: - ./* exclude: - .git