Skip to content

Prepare release 0.21.0 #242

Prepare release 0.21.0

Prepare release 0.21.0 #242

Workflow file for this run

# SPDX-FileCopyrightText: 2025 The meson-python developers
#
# SPDX-License-Identifier: MIT
name: release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
- release-*
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: '3.14'
- run: python -m pip install build
- run: python -m build
- uses: actions/upload-artifact@v7
with:
path: dist/*
upload:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
environment:
name: pypi
url: https://pypi.org/p/meson-python
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
print-hash: true