Skip to content

Commit a9adce7

Browse files
committed
publish as Trusted Publisher
1 parent d112817 commit a9adce7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ on:
66
jobs:
77
release:
88
runs-on: ubuntu-latest
9+
environment:
10+
name: pypi
11+
url: https://pypi.org/p/3scale-api
12+
permissions:
13+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
914
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-python@v2
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
1217
with:
1318
python-version: '3.11'
1419
- name: setup
1520
run: pip install wheel
1621
- name: build
1722
run: python setup.py --release-version ${GITHUB_REF#refs/tags/v} sdist bdist_wheel
18-
- name: release
23+
- name: Publish package distributions to PyPI
1924
uses: pypa/gh-action-pypi-publish@release/v1
20-
with:
21-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)