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
# This workflow will upload a Python Package using Twine when a release is created
1
+
# This workflow will upload a Python Package using Poetry when a release is created
2
2
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
3
4
4
# This workflow uses actions that are not certified by GitHub.
@@ -14,26 +14,95 @@ on:
14
14
15
15
permissions:
16
16
contents: read
17
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17
18
18
19
jobs:
19
20
deploy:
20
-
21
21
runs-on: ubuntu-latest
22
-
22
+
environment:
23
+
name: pypi
24
+
url: https://pypi.org/p/treelib
25
+
23
26
steps:
24
27
- uses: actions/checkout@v4
28
+
25
29
- name: Set up Python
26
30
uses: actions/setup-python@v5.4.0
27
31
with:
28
-
python-version: '3.x'
32
+
python-version: '3.11'# Use specific version for consistency
0 commit comments