Skip to content
Snippets Groups Projects

Feature/mad 91 gitlab pipeline

Merged Lene Wasskog requested to merge feature/mad-91-gitlab-pipeline into main
1 file
+ 28
0
Compare changes
  • Side-by-side
  • Inline
.gitlab-ci.yml 0 → 100644
+ 28
0
default:
image: python:3.10
stages:
- build
- deploy
- pages
before_script:
- python -V
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install build twine
build:
stage: build
script:
- python -m build
artifacts:
paths:
- dist/*.whl
expire_in: 2 days
deploy:
stage: deploy
script:
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository gitlab dist/* --verbose
Loading