Skip to content

Commit 776e36d

Browse files
authored
Merge pull request dbfixtures#1339 from dbfixtures/trusted-publishing
Trusted publishing
2 parents 965fba0 + 9254f54 commit 776e36d

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,24 @@ on:
44
tags:
55
- v*
66
jobs:
7-
build-n-publish:
7+
build:
88
uses: fizyk/actions-reuse/.github/workflows/shared-pypi.yml@v4.4.7
99
with:
10-
publish: true
11-
secrets:
12-
pypi_token: ${{ secrets.pypi_password }}
10+
publish: false
11+
12+
publish:
13+
name: Publish Python 🐍 distributions 📦 to PyPI
14+
needs: build
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
steps:
19+
- name: Download distributions 📦
20+
uses: actions/download-artifact@v4
21+
with:
22+
name: package
23+
path: dist/
24+
- name: Publish distribution 📦 to PyPI
25+
uses: pypa/gh-action-pypi-publish@v1.14.0
26+
with:
27+
verbose: true

newsfragments/+13f2182d.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Migrate package publishing step to trusted publishing.

0 commit comments

Comments
 (0)