Skip to content

Commit 716617a

Browse files
authored
Merge pull request #509 from pygae/pypi
Set up pypi publish with trusted-publishing
2 parents 25d432e + b8ae6c3 commit 716617a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/ci.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ jobs:
7070
&& !contains(github.event.head_commit.message, '[skip ci]')
7171
&& !contains(github.event.head_commit.message, '[no release]')
7272
runs-on: ubuntu-latest
73+
# https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing
74+
permissions:
75+
id-token: write
76+
environment:
77+
name: pypi
78+
url: https://pypi.org/p/galgebra
7379
steps:
7480
- name: Check out code
7581
uses: actions/checkout@v3
@@ -79,12 +85,9 @@ jobs:
7985
python-version: "3.11"
8086
- name: Install wheel
8187
run: |
82-
python -m pip install wheel
83-
- name: Build and upload package
84-
if: success()
85-
env:
86-
TWINE_USERNAME: __token__
87-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
88+
python -m pip install wheel packaging
89+
- name: Build a binary wheel
8890
run: |
8991
python setup.py sdist bdist_wheel
90-
twine upload dist/*
92+
- name: Publish package distributions to PyPI
93+
uses: pypa/gh-action-pypi-publish@release/v1

galgebra/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# 1) we don't load dependencies by storing it in __init__.py
66
# 2) we can import it in setup.py for the same reason
77
# 3) we can import it into your module
8-
__version__ = '0.5.0'
8+
__version__ = '0.5.1'

0 commit comments

Comments
 (0)