File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 70
70
&& !contains(github.event.head_commit.message, '[skip ci]')
71
71
&& !contains(github.event.head_commit.message, '[no release]')
72
72
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
73
79
steps :
74
80
- name : Check out code
75
81
uses : actions/checkout@v3
79
85
python-version : " 3.11"
80
86
- name : Install wheel
81
87
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
88
90
run : |
89
91
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
Original file line number Diff line number Diff line change 5
5
# 1) we don't load dependencies by storing it in __init__.py
6
6
# 2) we can import it in setup.py for the same reason
7
7
# 3) we can import it into your module
8
- __version__ = '0.5.0 '
8
+ __version__ = '0.5.1 '
You can’t perform that action at this time.
0 commit comments