Skip to content

Commit b09c976

Browse files
committed
Stop using composite action release to PyPI.
1 parent 754c679 commit b09c976

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/release-to-pypi.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,37 @@ jobs:
3232
if: success()
3333
# windows container is not required here
3434
runs-on: ubuntu-latest
35-
# Specifying a GitHub environment is optional, but strongly encouraged
36-
environment: release
3735
permissions:
3836
# IMPORTANT: this permission is mandatory for trusted publishing
3937
id-token: write
38+
# Specifying a GitHub environment is optional, but strongly encouraged
39+
environment:
40+
name: release
41+
url: https://pypi.org/project/matlab-proxy
4042

4143
steps:
4244
- name: Checkout
4345
uses: actions/checkout@v4
4446
with:
4547
ref: ${{github.sha}}
4648

47-
- name: Build and Publish in PyPi
48-
uses: ./.github/actions/build_and_publish_pypi
49+
- name: Set up Python 3.8
50+
uses: actions/setup-python@v5
51+
with:
52+
python-version: '3.8'
53+
54+
- name: Install Python build dependencies
55+
run: |
56+
python3 -m pip install --upgrade pip
57+
python3 -m pip install wheel
58+
shell: bash
59+
60+
- name: Build Source and Binary wheel distributions
61+
run: python3 setup.py bdist_wheel sdist
62+
shell: bash
63+
64+
- name: Publish to PyPI.
65+
uses: pypa/gh-action-pypi-publish@release/v1
66+
67+
# pypa/gh-action-pypi-publish does not support composite action from v1.12.0 onwards.
68+
# For more information, see : https://github.com/pypa/gh-action-pypi-publish/issues/299

0 commit comments

Comments
 (0)