Skip to content

Renovate: actions/checkout to v7 #199

Renovate: actions/checkout to v7

Renovate: actions/checkout to v7 #199

Workflow file for this run

---
name: Deploy
on:
push:
branches:
- main
- renovate/**
tags:
- v*
pull_request:
jobs:
build:
permissions:
contents: read
runs-on: ubuntu-slim
steps:
- name: Checkout source
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Set up uv
# yamllint disable-line rule:line-length
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 # zizmor: ignore[cache-poisoning]
with:
activate-environment: true
python-version: 3.14
- name: Install dependencies
shell: bash
run: uv sync --only-dev
- name: Build distributions
shell: bash
run: uv run python -m build
- name: Upload distribution
# yamllint disable-line rule:line-length
uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2
deploy-test-pypi:
if: startsWith(github.ref, 'refs/tags/')
needs: build
permissions:
id-token: write
runs-on: ubuntu-slim
steps:
- name: Download distributions
# yamllint disable-line rule:line-length
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: Packages
path: dist
- name: Publish package to TestPyPI
# yamllint disable-line rule:line-length
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
deploy-pypi:
if: startsWith(github.ref, 'refs/tags/')
needs: build
permissions:
id-token: write
runs-on: ubuntu-slim
steps:
- name: Download distributions
# yamllint disable-line rule:line-length
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: Packages
path: dist
- name: Publish package to PyPI
# yamllint disable-line rule:line-length
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
verbose: true