setuptools
import issue and switch build system to uv
#4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |