Skip to content

Bump version to 0.0.215 #1

Bump version to 0.0.215

Bump version to 0.0.215 #1

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: "python -m pip install --only-binary :all: build==1.5.0 twine==6.2.0"
- name: Verify tag matches package version
env:
RELEASE_TAG: ${{ github.ref_name }}
run: |
python - <<'PY'
import os, tomllib
with open("pyproject.toml", "rb") as handle:
version = tomllib.load(handle)["project"]["version"]
if os.environ["RELEASE_TAG"] != f"v{version}":
raise SystemExit(f"tag {os.environ['RELEASE_TAG']} != v{version}")
PY
- run: python -m build
- run: python -m twine check dist/*
- name: Smoke-test the built wheel
run: |
python -m venv /tmp/wheel-test
/tmp/wheel-test/bin/pip install dist/*.whl
/tmp/wheel-test/bin/python -c "import je_auto_control.api"
- uses: actions/attest-build-provenance@v2
with:
subject-path: "dist/*"
- uses: actions/upload-artifact@v4
with:
name: python-distributions
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/je-auto-control
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: python-distributions
path: dist/
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0