Skip to content

fix(compat): make compatible down to python 3.8 #16

fix(compat): make compatible down to python 3.8

fix(compat): make compatible down to python 3.8 #16

Workflow file for this run

name: CD
on:
push:
branches: [main]
paths-ignore:
- .github/**
- .cz.toml
- .gitignore
- .pre-commit-config.yaml
- .yamllint.yml
- CHANGELOG.md
workflow_dispatch:
env:
# renovate: datasource=pypi depName=commitizen
COMMITIZEN_VERSION: 3.13.0
# renovate: datasource=github-releases depName=mitsuhiko/rye
RYE_VERSION: 0.15.2
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
secrets: inherit
release:
name: Release
needs: [ci]
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
environment: release
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Dry run
uses: commitizen-tools/commitizen-action@bc2616fec6b3effc9ad20380f19550a8b18cdbdf # 0.20.0
with:
github_token: ${{ github.token }}
changelog_increment_filename: _changelog.md
commitizen_version: ${{ env.COMMITIZEN_VERSION }}
dry_run: true
- name: Bump
uses: commitizen-tools/commitizen-action@bc2616fec6b3effc9ad20380f19550a8b18cdbdf # 0.20.0
with:
github_token: ${{ github.token }}
changelog_increment_filename: _changelog.md
commitizen_version: ${{ env.COMMITIZEN_VERSION }}
- name: Release
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
with:
bodyFile: _changelog.md
skipIfReleaseExists: true
tag: ${{ env.REVISION }}
- name: Setup Rye
uses: nikaro/actions/setup-rye@fbd9437083a50b65e0243a96b0def467bde4045b # 1.2.7
- name: Build package
run: rye build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf # v1.8.11
with:
skip-existing: true