Skip to content

Fix lint errors

Fix lint errors #6

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*"
env:
MIN_SUPPORTED_PYTHON: "3.8"
PYTHON_DEPENDENCIES: "build"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ env.MIN_SUPPORTED_PYTHON }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.MIN_SUPPORTED_PYTHON }}
cache: pip
- name: Install dependencies
run: python -m pip install $PYTHON_DEPENDENCIES
- name: 📦 Build package
run: python -m build --sdist --wheel --outdir dist/
- name: 🚀 Publish package on PyPi
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Generating checksum
run: |
cd dist/
find . -name '*.whl' -exec sh -c 'sha256sum "$0" > "${0%}.sha256"' {} \;
cd ..
- name: 📝 Create GitHub release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
generateReleaseNotes: true
artifacts: "dist/*.whl,dist/*.sha256"