Skip to content

24.2.1

24.2.1 #105

Workflow file for this run

---
on:
release:
types: [published]
jobs:
pypi-publish-taskcluster-taskgraph:
name: upload release to PyPI
if: ${{ ! startsWith(github.ref, 'refs/tags/pytest-taskgraph') }}
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.14'
cache: 'pip'
- name: Build taskcluster-taskgraph package distributions
run: |
pip install build
python -m build
# NOTE: We deliberately pin this action to a commit SHA rather than the
# mutable `@release/v1` ref that PyPA recommends. The pin stops the
# action from being swapped out from under a workflow that holds PyPI
# publish (OIDC) rights; the cost is losing automatic upstream patches.
# Renovate offsets that by bumping the pinned SHA (tracked via the
# trailing `# vX.Y.Z` comment), so merge those bump PRs promptly.
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
pypi-publish-pytest-taskgraph:
name: upload release to PyPI
if: startsWith(github.ref, 'refs/tags/pytest-taskgraph')
runs-on: ubuntu-latest
environment: pytest-taskgraph-release
permissions:
id-token: write
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.14'
cache: 'pip'
- name: Build pytest-taskgraph package distributions
working-directory: packages/pytest-taskgraph
run: |
pip install build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
packages-dir: packages/pytest-taskgraph/dist
pypi-publish-sphinx-taskgraph:
name: upload release to PyPI
if: startsWith(github.ref, 'refs/tags/sphinx-taskgraph')
runs-on: ubuntu-latest
environment: sphinx-taskgraph-release
permissions:
id-token: write
steps:
- name: Checkout sources
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.14'
cache: 'pip'
- name: Build sphinx-taskgraph package distributions
working-directory: packages/sphinx-taskgraph
run: |
pip install build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
packages-dir: packages/sphinx-taskgraph/dist