File tree 1 file changed +2
-35
lines changed
1 file changed +2
-35
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- # cspell:ignore mislav
3
2
name : release
4
3
5
4
on :
6
5
release :
7
6
types : [published]
8
7
9
8
jobs :
10
- pypi :
11
- name : Publish to PyPI registry
12
- environment : release
13
- runs-on : ubuntu-22.04
14
- permissions :
15
- id-token : write
16
-
17
- env :
18
- FORCE_COLOR : 1
19
- PY_COLORS : 1
20
- TOXENV : pkg
21
-
22
- steps :
23
- - name : Switch to using Python 3.10 by default
24
- uses : actions/setup-python@v5
25
- with :
26
- python-version : " 3.10"
27
-
28
- - name : Install tox
29
- run : python3 -m pip install --user "tox>=4.0.0"
30
-
31
- - name : Check out src from Git
32
- uses : actions/checkout@v4
33
- with :
34
- fetch-depth : 0 # needed by setuptools-scm
35
- submodules : true
36
-
37
- - name : Build dists
38
- run : python3 -m tox
39
-
40
- - name : Publish to pypi.org
41
- if : >- # "create" workflows run separately from "push" & "pull_request"
42
- github.event_name == 'release'
43
- uses : pypa/gh-action-pypi-publish@release/v1
9
+ release :
10
+ uses : ansible/team-devtools/.github/workflow/release.yml@main
You can’t perform that action at this time.
0 commit comments