Skip to content

Commit

Permalink
Add initial ci config (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcollins authored Nov 26, 2024
1 parent efe97b0 commit 86ff420
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 86ff420

Please sign in to comment.