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
33 changes: 33 additions & 0 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: publish-pypi

on:
release:
types: [released]
workflow_dispatch:

jobs:
publish-job:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v6.0.3
- uses: mamba-org/setup-micromamba@v3
with:
environment-file: environment.yml
init-shell: >-
bash
cache-environment: false
create-args: python-build twine
post-cleanup: 'all'
- name: Build packages
shell: bash -el {0}
run: |
python3 -m build
- name: Check build
shell: bash -el {0}
run: |
python3 -m twine check dist/*
- name: Upload to PyPI
shell: bash -el {0}
run: |
python3 -m twine upload --username __token__ --password ${{ secrets.PYPI_TOKEN }} dist/*
Loading