Skip to content

Remove most custom rules #410

Remove most custom rules

Remove most custom rules #410

Workflow file for this run

---
name: Deploy
on:
push:
branches:
- main
- renovate/**
tags:
- v*
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
shell: bash
run: python -m pip install build
- name: Build distributions
shell: bash
run: python -m build
- name: Upload distribution
# yamllint disable-line rule:line-length
uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2
deploy-test-pypi:
if: startsWith(github.ref, 'refs/tags/')
needs: build
permissions:
id-token: write
runs-on: ubuntu-latest
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@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
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-latest
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@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
with:
verbose: true