release: version 0.4.3 🚀 #73
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Python Package | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'release-*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Create Release | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.10" ] | |
poetry-version: [ "1.3.2" ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# by default, it uses a depth of 1 | |
# this fetches all history so that we can read each commit | |
fetch-depth: 0 | |
- name: Generate Changelog | |
run: .github/release_message.sh > release_message.md | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: release_message.md | |
deploy: | |
name: Build and Publish | |
needs: release | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.10" ] | |
poetry-version: [ "1.3.2" ] | |
poetry-version-pip: [ "==1.3.2" ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Python Poetry Action | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install project | |
run: poetry install | |
- name: Build project | |
run: poetry build | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |