long overdue bugfix, thanks @mcguirepatr #2
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: Publish ILAMB to PyPI | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/ILAMB | |
permissions: | |
id-token: write | |
steps: | |
# retrieve your distributions here | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install setuptools setuptools-scm wheel twine check-manifest | |
- name: Build tarball and wheels | |
run: | | |
git clean -xdf | |
git restore -SW . | |
python -m build --sdist --wheel . | |
- name: Test the artifacts | |
run: | | |
python -m twine check dist/* | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |