Skip to content

Commit c3dd27a

Browse files
authored
Fix release pipeline (#69)
1 parent 16cf9e2 commit c3dd27a

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,24 @@ jobs:
1414
FORCE_COLOR: 1
1515
PY_COLORS: 1
1616
TOXENV: packaging
17-
TOX_PARALLEL_NO_SPINNER: 1
1817

1918
steps:
2019
- name: Switch to using Python 3.8 by default
2120
uses: actions/setup-python@v4
2221
with:
2322
python-version: 3.8
23+
cache: pip
2424
- name: Install tox
25-
run: >-
26-
python3 -m
27-
pip install
28-
--user
29-
tox
25+
run: python3 -m pip install --user tox
3026
- name: Check out src from Git
3127
uses: actions/checkout@v3
3228
with:
3329
fetch-depth: 0 # needed by setuptools-scm
3430
- name: Build dists
3531
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/
4332
- name: Publish to pypi.org
4433
if: >- # "create" workflows run separately from "push" & "pull_request"
4534
github.event_name == 'release'
46-
uses: pypa/gh-action-pypi-publish@master
35+
uses: pypa/gh-action-pypi-publish@release/v1
4736
with:
4837
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)