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 c42e9d0 commit 1c51a92Copy full SHA for 1c51a92
.github/workflows/publish-pypi.yml
@@ -10,6 +10,8 @@ jobs:
10
runs-on: ubuntu-latest
11
# This ensures that the publish action only runs in the main repository
12
# rather than forks
13
+ # Environment is encouraged so adding
14
+ environment: release
15
if: github.repository_owner == 'pyopensci'
16
permissions:
17
id-token: write # this permission is mandatory for pypi publishing
@@ -40,8 +42,8 @@ jobs:
40
42
echo ""
41
43
echo "Generated files:"
44
ls -lh dist/
-
- - name: Publish package on test PyPI on merge in main branch # optional
45
+
46
+ - name: Publish package on test PyPI on merge in main branch
47
# Test push to test pypi on merge to main
48
if: github.event_name == 'push'
49
uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments