We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af6a4e commit 32d41d1Copy full SHA for 32d41d1
.github/workflows/release.yml
@@ -2,12 +2,17 @@ name: Upload Python Package
2
3
on:
4
release:
5
- types: [created]
+ types: [published]
6
+
7
+permissions:
8
+ content: write
9
+ id-token: write
10
11
jobs:
12
build_deploy:
13
14
runs-on: ubuntu-latest
15
+ environment: publishing
16
17
steps:
18
- uses: actions/checkout@v3
@@ -36,6 +41,4 @@ jobs:
36
41
overwrite: true
37
42
file_glob: true
38
43
- name: Deploy to PyPI
39
- run: |
40
- poetry publish -r testpypi -u "__token__" -p "${{ secrets.TEST_PYPI_TOKEN }}"
- poetry publish -u "__token__" -p "${{ secrets.POSTGRES_PYPI_TOKEN }}"
44
+ uses: pypa/gh-action-pypi-publish@v1.8.5
0 commit comments