Update changelog for release #33
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: 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/* |