Skip to content

Commit d5fc949

Browse files
authored
Fix release pipeline (#32)
1 parent 2572f1c commit d5fc949

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,37 @@ jobs:
88
pypi:
99
name: Publish to PyPI registry
1010
environment: release
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212

1313
env:
1414
FORCE_COLOR: 1
1515
PY_COLORS: 1
16-
TOXENV: packaging
1716
TOX_PARALLEL_NO_SPINNER: 1
1817

1918
steps:
20-
- name: Switch to using Python 3.8 by default
19+
- name: Switch to using Python 3.9 by default
2120
uses: actions/setup-python@v4
2221
with:
23-
python-version: 3.8
22+
python-version: 3.9
23+
2424
- name: Install tox
2525
run: >-
2626
python3 -m
2727
pip install
2828
--user
2929
tox
30+
3031
- name: Check out src from Git
3132
uses: actions/checkout@v3
3233
with:
3334
fetch-depth: 0 # needed by setuptools-scm
35+
3436
- name: Build dists
35-
run: python -m tox
36-
- name: Publish to test.pypi.org
37-
if: >- # "create" workflows run separately from "push" & "pull_request"
38-
github.event_name == 'release'
39-
uses: pypa/gh-action-pypi-publish@master
40-
with:
41-
password: ${{ secrets.testpypi_password }}
42-
repository_url: https://test.pypi.org/legacy/
37+
run: python -m tox -e pkg
38+
4339
- name: Publish to pypi.org
4440
if: >- # "create" workflows run separately from "push" & "pull_request"
4541
github.event_name == 'release'
46-
uses: pypa/gh-action-pypi-publish@master
42+
uses: pypa/gh-action-pypi-publish@release/v1
4743
with:
4844
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)