File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
pypi :
10
10
name : Publish to PyPI registry
11
- environment : release
11
+ environment :
12
+ name : pypi
13
+ url : https://pypi.org/p/pytest-testinfra
12
14
runs-on : ubuntu-22.04
13
-
15
+ permissions :
16
+ id-token : write
14
17
env :
15
18
FORCE_COLOR : 1
16
19
PY_COLORS : 1
17
-
18
20
steps :
19
21
- uses : actions/checkout@v4
20
- with :
21
- fetch-depth : 0 # needed by setuptools-scm
22
22
- name : Switch to using Python 3.11 by default
23
23
uses : actions/setup-python@v5
24
24
with :
31
31
run : |
32
32
tox -e packaging
33
33
- name : Publish to pypi.org
34
- if : >- # "create" workflows run separately from "push" & "pull_request"
35
- github.event_name == 'release'
36
34
uses : pypa/gh-action-pypi-publish@release/v1
37
- with :
38
- password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments