You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+12-6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
-
# This workflow will upload a Python Package using Twine when a release is created
1
+
# This workflow will upload a Python Package using Trusted Publishers automatically when a release is created
2
2
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
# and https://docs.pypi.org/trusted-publishers/using-a-publisher/.
3
4
4
5
name: Upload Python Package
5
6
@@ -8,9 +9,17 @@ on:
8
9
types: [created]
9
10
10
11
jobs:
11
-
deploy:
12
-
12
+
pypi-publish:
13
13
runs-on: ubuntu-latest
14
+
15
+
environment:
16
+
name: pypi
17
+
url: https://pypi.org/project/tldr/
18
+
19
+
permissions:
20
+
contents: read
21
+
id-token: write # Required for accessing OpenID Connect (OIDC) token for PyPI trusted publisher
0 commit comments