@@ -14,12 +14,12 @@ jobs:
14
14
- uses : actions/checkout@v4
15
15
16
16
- name : Set up Python
17
- uses : actions/setup-python@v4
17
+ uses : actions/setup-python@v5.5.0
18
18
with :
19
19
python-version : " 3.x"
20
20
21
21
- name : Install Poetry
22
- uses : snok/install-poetry@v1
22
+ uses : snok/install-poetry@v1.4.1
23
23
24
24
- name : Install dependencies
25
25
run : poetry install
68
68
if : startsWith(github.ref, 'refs/tags/')
69
69
needs :
70
70
- build
71
+ - publish-to-testpypi
71
72
runs-on : ubuntu-latest
72
73
environment :
73
74
name : pypi
@@ -84,22 +85,22 @@ jobs:
84
85
85
86
# Add signing steps before publishing
86
87
- name : Set up Python environment
87
- uses : actions/setup-python@v4
88
+ uses : actions/setup-python@v5.5.0
88
89
with :
89
90
python-version : " 3.x"
90
91
- name : Install cryptography version 43
91
92
run : |
92
93
python -m pip install --upgrade pip
93
94
pip install cryptography==43.*
94
95
- name : Sign the dists with Sigstore
95
- uses : sigstore/gh-action-sigstore-python@v2.1.1
96
+ uses : sigstore/gh-action-sigstore-python@v3.0.0
96
97
with :
97
98
inputs : >-
98
99
./dist/*.tar.gz
99
100
./dist/*.whl
100
101
101
102
- name : Publish distribution 📦 to PyPI
102
- uses : pypa/gh-action-pypi-publish@release/v1
103
+ uses : pypa/gh-action-pypi-publish@v1.12.4
103
104
104
105
publish-to-testpypi :
105
106
name : Publish Python 🐍 distribution 📦 to TestPyPI
@@ -121,6 +122,6 @@ jobs:
121
122
name : python-package-distributions-testing
122
123
path : dist/
123
124
- name : Publish distribution 📦 to TestPyPI
124
- uses : pypa/gh-action-pypi-publish@release/v1
125
+ uses : pypa/gh-action-pypi-publish@v1.12.4
125
126
with :
126
127
repository-url : https://test.pypi.org/legacy/
0 commit comments