Skip to content

evo-blockmodels@v0.1.1 #38

evo-blockmodels@v0.1.1

evo-blockmodels@v0.1.1 #38

name: Build and publish evo-colormaps
permissions:
# Required for publishing release artifacts
contents: write
# Required for PyPI trusted publishing
id-token: write
on:
release:
types: [released]
env:
GH_TOKEN: ${{ github.token }}
jobs:
run-tests:
if: startsWith(github.event.release.tag_name, 'evo-colormaps@')
uses: ./.github/workflows/run-all-tests.yaml
build-and-publish:
name: Build and publish package
needs: run-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-uv
- name: Build package
shell: bash
run: uv build --package evo-colormaps
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Upload artifact to GitHub Release
shell: bash
run: gh release upload ${{ github.event.release.tag_name }} dist/*