From 75afa7e09b00a0f699cd514fdfcbdbd0adc7c64a Mon Sep 17 00:00:00 2001 From: Pablo Collins Date: Mon, 25 Nov 2024 17:08:17 -0500 Subject: [PATCH] Add initial ci config --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4b55569 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +default: + image: 'cimg/python:3.11' + +stages: + - build + - deploy + +build-job: + stage: build + script: + - pip install hatch + - hatch build + - shasum -a 256 dist/* > dist/checksums.txt + artifacts: + paths: + - dist/ + only: + - /^v[0-9]+\.[0-9]+\.[0-9]+.*/ + except: + - branches + +deploy-job: + stage: deploy + script: + - pip install hatch keyrings.alt + - hatch --no-interactive publish + needs: + - build-job + only: + - /^v[0-9]+\.[0-9]+\.[0-9]+.*/ + except: + - branches +