Skip to content

Commit edf0f56

Browse files
committed
github: simplify release-to-pypi action
We can just let pipx install poetry for us and we don't need a special Python install or to run `poetry install`. Also update action versions while we are touching this.
1 parent 00f1c95 commit edf0f56

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/release-to-pypi.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@ on:
66

77
jobs:
88
build_and_publish:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
13-
with:
14-
python-version: 3.8
15-
- uses: abatilo/[email protected]
16-
with:
17-
poetry-version: 1.1.6
18-
- run: poetry install
19-
- run: poetry build
20-
- run: poetry publish
11+
- uses: actions/checkout@v3
12+
- run: pipx run poetry build
13+
- run: pipx run poetry publish
2114
env:
2215
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)