Skip to content

Commit 773fc6c

Browse files
authored
Merge pull request #55 from DEIS-Tools/53-move-to-secretless-publishing-to-pypi
Move to secretless publishing to pypi
2 parents 40c2406 + 258b054 commit 773fc6c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/to_pypi.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Build a binary wheel and a source tarball
2424
run: python3 -m build
2525
- name: Store the distribution packages
26-
uses: actions/upload-artifact@v3
26+
uses: actions/upload-artifact@v4
2727
with:
2828
name: python-package-distributions
2929
path: dist/
@@ -34,18 +34,21 @@ jobs:
3434
needs:
3535
- build
3636
runs-on: ubuntu-latest
37+
environment:
38+
name: pypi
39+
url: https://pypi.org/p/strategoutil
40+
permissions:
41+
id-token: write # IMPORTANT: mandatory for trusted publishing
3742

3843
steps:
3944
- name: Download all the dists
40-
uses: actions/download-artifact@v3
45+
uses: actions/download-artifact@v4
4146
with:
4247
name: python-package-distributions
4348
path: dist/
4449
- name: Publish distribution to PyPI
4550
uses: pypa/gh-action-pypi-publish@release/v1
4651
with:
47-
user: __token__
48-
password: ${{ secrets.PYPI_API_TOKEN }}
4952
verbose: true
50-
skip_existing: true
53+
skip-existing: true
5154

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = strategoutil
3-
version = 0.1.2
3+
version = 0.1.4
44
author = Mihhail Samusev, Martijn Goorden
55
66
description = Python utility functions library for UPPAAL Stratego

0 commit comments

Comments
 (0)