Skip to content

build: bump version

build: bump version #5

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: System Setup
run: |
sudo apt update
sudo apt install build-essential libpython3-dev libdbus-1-dev
- name: Python Setup ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Package Setup
run: |
python -c "import sys; print(sys.version)"
python -m pip install -v -e .[dev]
- name: Build Python Package
run: |
python -m hatch build
- name: Store Python Artifacts
if: ${{ matrix.python-version == '3.10' }}
uses: actions/upload-artifact@v4
with:
name: python-package
path: dist/cortile*
pypi-test:
runs-on: ubuntu-latest
needs: build
environment:
name: pypi-test
url: https://test.pypi.org/p/cortile
permissions:
id-token: write
steps:
- name: Download Python Artifacts
uses: actions/download-artifact@v4
with:
name: python-package
path: dist/
- name: Publish Package
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/