fime/.gitlab-ci.yml
2022-09-22 00:10:31 +02:00

34 lines
655 B
YAML

image: python:3.10
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PIPENV_VENV_IN_PROJECT: 1
cache:
paths:
- .cache/pip
- .venv/
package_pip:
stage: build
script:
- python --version
- pip install pipenv build
- pipenv sync --dev
- pipenv run python -m build -w
artifacts:
paths:
- dist/*.whl
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Running the release job."
release:
tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG'
description: 'Release created using the release-cli.'