Skip to content

update to CI

update to CI #3

Workflow file for this run

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