release #13
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 | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes | |
deploy: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: publish | |
url: https://pypi.org/p/pyEQL | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools setuptools_scm wheel tox | |
- name: Build packages for distribution | |
run: | | |
tox -e clean,build | |
- name: Upload to PyPi | |
uses: pypa/[email protected] | |