Skip to content

Update changelog for release #31

Update changelog for release

Update changelog for release #31

Workflow file for this run

name: Upload Python Package
on:
push:
tags:
- v*.*.*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install -U pip
pip install -U .[packaging]
- name: Construct release body
id: construct
run: |
awk -v RS='' '/\[v/ {print $0; exit}' Changelog.md | tail -n+2 > ${{ github.workspace }}-release_notes.md
cat ${{ github.workspace }}-release_notes.md
- name: Create Github release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}-release_notes.md
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build package and publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*