55 types : [published]
66
77jobs :
8- before-release :
9- uses : ansible-community/ansible-compat/.github/workflows/tox.yml@main
10-
118 release :
129 name : release ${{ github.event.ref }}
13- needs : before-release
1410 # unable to use environment with uses/with, basically cannot reuse release pipelines
1511 environment : release
1612 runs-on : ubuntu-20.04
@@ -22,28 +18,28 @@ jobs:
2218 TOX_PARALLEL_NO_SPINNER : 1
2319
2420 steps :
25- - name : Switch to using Python 3.8 by default
26- uses : actions/setup-python@v2
27- with :
28- python-version : 3.8
29- - name : Install tox
30- run : >-
31- python3 -m
32- pip install
33- --user
34- tox
35- - name : Check out src from Git
36- uses : actions/checkout@v2
37- with :
38- fetch-depth : 0 # needed by setuptools-scm
39- - name : Build dists
40- run : python -m tox
41- - name : Publish to test.pypi.org
42- uses : pypa/gh-action-pypi-publish@master
43- with :
44- password : ${{ secrets.testpypi_password }}
45- repository_url : https://test.pypi.org/legacy/
46- - name : Publish to pypi.org
47- uses : pypa/gh-action-pypi-publish@master
48- with :
49- password : ${{ secrets.pypi_password }}
21+ - name : Switch to using Python 3.8 by default
22+ uses : actions/setup-python@v2
23+ with :
24+ python-version : 3.8
25+ - name : Install tox
26+ run : >-
27+ python3 -m
28+ pip install
29+ --user
30+ tox
31+ - name : Check out src from Git
32+ uses : actions/checkout@v2
33+ with :
34+ fetch-depth : 0 # needed by setuptools-scm
35+ - name : Build dists
36+ run : python -m tox
37+ - name : Publish to test.pypi.org
38+ uses : pypa/gh-action-pypi-publish@master
39+ with :
40+ password : ${{ secrets.testpypi_password }}
41+ repository_url : https://test.pypi.org/legacy/
42+ - name : Publish to pypi.org
43+ uses : pypa/gh-action-pypi-publish@master
44+ with :
45+ password : ${{ secrets.pypi_password }}
0 commit comments