Skip to content

57 automatic pypi publishing #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi_release
url: https://pypi.org/p/ModularCirc
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Build package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ there is also a autamtated test pipeline that runs the tests on every push to th
<!-- prettier-ignore-start -->
[actions-badge]: https://github.com/alan-turing-institute/ModularCirc/workflows/CI/badge.svg
[actions-link]: https://github.com/alan-turing-institute/ModularCirc/actions
[pypi-link]: https://test.pypi.org/project/ModularCirc-LevanBokeria/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/ModularCirc-LevanBokeria
[pypi-version]: https://img.shields.io/pypi/v/ModularCirc-LevanBokeria
[pypi-link]: https://pypi.org/project/ModularCirc
[pypi-platforms]: https://img.shields.io/pypi/pyversions/ModularCirc
[pypi-version]: https://img.shields.io/pypi/v/ModularCirc
<!-- prettier-ignore-end -->
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ModularCirc"
version = "0.1.2"
version = "0.1.3"
authors = [
{name = "Maximilian Balmus", email = "mbalmus@turing.ac.uk"}
]
Expand Down
Loading