Skip to content

Commit 32d41d1

Browse files
Apply suggestions from code review
Co-authored-by: Edgar R. M. <[email protected]>
1 parent 2af6a4e commit 32d41d1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ name: Upload Python Package
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
6+
7+
permissions:
8+
content: write
9+
id-token: write
610

711
jobs:
812
build_deploy:
913

1014
runs-on: ubuntu-latest
15+
environment: publishing
1116

1217
steps:
1318
- uses: actions/checkout@v3
@@ -36,6 +41,4 @@ jobs:
3641
overwrite: true
3742
file_glob: true
3843
- name: Deploy to PyPI
39-
run: |
40-
poetry publish -r testpypi -u "__token__" -p "${{ secrets.TEST_PYPI_TOKEN }}"
41-
poetry publish -u "__token__" -p "${{ secrets.POSTGRES_PYPI_TOKEN }}"
44+
uses: pypa/[email protected]

0 commit comments

Comments
 (0)