Skip to content

Commit 37d64ac

Browse files
committed
Refact: Alignment with MLPro 2.0.0 #35
1 parent 7b64657 commit 37d64ac

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/pypi_deploy.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
## -- 2024 1.0.0 MRD Creation
88
## -- 2024-12-03 1.1.0 DA Updated the version for Python to 3.10
99
## -- 2024-12-10 1.2.0 DA Update actions/checkout to v4
10+
## -- 2025-04-27 1.3.0 DA Update pypa/gh-action-pypi-publish@master to
11+
## -- pypa/gh-action-pypi-publish@release/v1
1012
## -------------------------------------------------------------------------------------------------
1113

1214
name: Deployment PyPI
@@ -20,31 +22,39 @@ on:
2022
jobs:
2123
build:
2224
runs-on: ubuntu-latest
25+
26+
environment:
27+
name: Deployment PyPI
28+
url: https://pypi.org/p/mlpro-int-river
29+
permissions:
30+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
2331

2432
steps:
33+
2534
- name: Checkout Codes
2635
uses: actions/checkout@v4
2736
with:
2837
ref: ${{ github.head_ref }}
29-
- name: Set up Python 3.10
38+
39+
- name: Set up Python 3.11
3040
uses: actions/setup-python@v5
3141
with:
32-
python-version: '3.10'
42+
python-version: '3.11'
43+
3344
- name: Install pypa/build
3445
run: >-
3546
python -m
3647
pip install
3748
build
3849
--user
50+
3951
- name: Build a binary wheel and a source tarball
4052
run: >-
4153
python -m
4254
build
4355
--sdist
4456
--wheel
4557
--outdir dist/
58+
4659
- name: Publish distribution to PyPI
47-
# if: startsWith(github.ref, 'refs/tags')
48-
uses: pypa/gh-action-pypi-publish@master
49-
with:
50-
password: ${{ secrets.PYPI_API_TOKEN }}
60+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)