Skip to content

setuptools import issue and switch build system to uv #4

setuptools import issue and switch build system to uv

setuptools import issue and switch build system to uv #4

name: Publish to PyPI, Docker Hub and GitHub IO
on:
release:
types:
- created
jobs:
pypi:
name: Build and publish to PyPI
runs-on: ubuntu-latest
# Environment and permissions trusted publishing.
environment:
name: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- run: uv build
- run: uv publish --trusted-publishing always
docker-image-CI:
name: Docker Image CI
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4
- name: Publish main image (Dockerfile) to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: clinicalgenomics/stranger
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ github.event.release.tag_name }}"