Skip to content

Commit 42d4568

Browse files
committed
fix(github): update action for package publish
1 parent 26687a2 commit 42d4568

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/continuous-integration-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77

88
jobs:
99
build:
10+
# Specifying a GitHub environment is optional, but strongly encouraged
11+
environment: release
12+
permissions:
13+
# IMPORTANT: this permission is mandatory for trusted publishing
14+
id-token: write
1015
runs-on: ubuntu-latest
1116
strategy:
1217
matrix:
@@ -36,4 +41,5 @@ jobs:
3641
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3742
run: |
3843
python setup.py sdist bdist_wheel
39-
twine upload dist/*
44+
- name: Publish package distributions to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)