Skip to content
Snippets Groups Projects
Commit 547c24c8 authored by Martin Bergemann's avatar Martin Bergemann :speech_balloon:
Browse files

Add automatic realeas pipeline

parent 443eed7c
No related branches found
No related tags found
1 merge request!34Add automatic realeas pipeline
Pipeline #20109 passed
......@@ -7,6 +7,7 @@ __pycache__/*
build/
*.tmpl
docs/_build/
dist/
my.log
src/freva_deployment/__pycache__
src/freva_deployment/cli/__pycache__
......
stages:
- doc
- release
lint:
image: python
......@@ -29,3 +30,23 @@ pages:
when: always
paths:
- public
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
needs: ["pages"]
tags:
- docker, specific
rules:
- if: $CI_COMMIT_TAG
before_script:
- pip install twine
script:
- python setup.py sdist
- TWINE_PASSWORD=${CI_JOB_TOKEN}
TWINE_USERNAME=98c8de339e1258db33f138635ca128
python -m twine upload --repository-url
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
release:
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment