Skip to content

Added type annotations + minor improvements #15

Added type annotations + minor improvements

Added type annotations + minor improvements #15

Workflow file for this run

name: Publish Python Package and Create Release
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine setuptools-scm
- name: Build package
run: python -m build
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: python -m twine upload dist/*
- name: Read Release Notes
id: get_release_notes
run: |
RELEASE_NOTES=$(cat CHANGELOG.md)
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "$RELEASE_NOTES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: pbir-utils ${{ github.ref_name }}
body: ${{ env.RELEASE_NOTES }}
draft: false
prerelease: false