Skip to content

Commit 812f4c4

Browse files
authored
Merge pull request #148 from Skyscanner/trusted-publishers
update pypi-release.yml file to configure trusted publishers
2 parents 682133b + 470e61b commit 812f4c4

File tree

3 files changed

+112
-34
lines changed

3 files changed

+112
-34
lines changed

.github/workflows/pypi-release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66

77
jobs:
88
build:
9+
name: Upload release to PyPI
910
runs-on: ubuntu-latest
10-
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/pycfmodel
14+
permissions:
15+
id-token: write
1116
steps:
1217
- uses: actions/checkout@v4
1318

@@ -25,5 +30,3 @@ jobs:
2530

2631
- name: Publish distribution 📦 to PyPI
2732
uses: pypa/gh-action-pypi-publish@release/v1
28-
with:
29-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)