Skip to content

WIP More flexible ITRF conversion function #70

WIP More flexible ITRF conversion function

WIP More flexible ITRF conversion function #70

name: Build & publish to PyPI
on:
workflow_dispatch:
pull_request:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
# Many color libraries just need this to be set to any value, but at least
# one distinguishes color depth, where "3" -> "256-bit color".
FORCE_COLOR: 3
jobs:
dist:
name: Distribution build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
publish:
if: github.ref_type == 'tag'
name: Publish to PyPI
needs: [dist]
environment: pypi
permissions:
id-token: write
attestations: write
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Generate artifact attestation for sdist and wheel
uses: actions/[email protected]
with:
subject-path: "dist/*"
- uses: pypa/gh-action-pypi-publish@release/v1