Skip to content

Commit ecdb188

Browse files
committed
Merge branch 'dev'
2 parents d80065f + 3ce8a46 commit ecdb188

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
release:
1010
name: "Release"
1111
runs-on: "ubuntu-latest"
12+
permissions:
13+
# Required for trusted publishing to PyPI
14+
id-token: write
15+
contents: write
1216

1317
steps:
1418
# ...
@@ -24,19 +28,17 @@ jobs:
2428
files: |
2529
LICENSE.txt
2630
27-
# Publish to PyPI
28-
- uses: actions/checkout@v2
31+
# Publish to PyPI using Trusted Publishers
32+
- uses: actions/checkout@v3
2933
- name: Set up Python
30-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v4
3135
with:
3236
python-version: '3.x'
3337
- name: Install dependencies
3438
run: |
3539
python -m pip install --upgrade pip
36-
pip install build twine
40+
pip install build
3741
- name: Build package
3842
run: python -m build
3943
- name: Publish to PyPI
40-
uses: pypa/gh-action-pypi-publish@release/v1
41-
with:
42-
password: ${{ secrets.PYPI_API_TOKEN }}
44+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)