Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,34 @@ jobs:
NBEXEC="jupyter nbconvert --to notebook --execute --inplace"
$NBEXEC ./scripts/example_basics.ipynb
$NBEXEC ./scripts/example_ecflux.ipynb


release_pypi:
name: PyPI Build and publish Python distributions (PEP 621, Trusted Publishing)
runs-on: ubuntu-latest
needs: ["build"]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, '-') && contains(github.ref_name, '.')
environment:
name: pypi
url: https://pypi.org/p/fluxie
permissions:
id-token: write # Required for Trusted Publishing
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"

- name: Build distributions with uv
run: uv build

- name: Publish
run: uv publish --trusted-publishing always
Loading