Skip to content

Bump version: 0.3.1 → 0.3.2 #7

Bump version: 0.3.1 → 0.3.2

Bump version: 0.3.1 → 0.3.2 #7

Workflow file for this run

name: "Release"
on:
push:
tags:
- 'v*'
jobs:
release:
name: Release the package
runs-on: ubuntu-latest
strategy:
matrix:
python-versions: [ "3.12" ]
steps:
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash
- name: Checkout repository
uses: actions/checkout@v4
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_depth: 10
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}
- name: Install dependencies
run: |
python -m pip install --no-input --upgrade pip
pip install poetry
poetry install -vv -n
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run linters
run: |
poetry run task lint
- name: Run unittests
run: |
poetry run task coverage
- name: Build wheels and source tarball
run: >-
poetry build -vv -n
- name: Create Github release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: ${{ steps.changelog_reader.outputs.changes }}
files: dist/*.whl
draft: false
prerelease: false
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true