Skip to content

Commit

Permalink
github: simplify release-to-pypi action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dlech committed Dec 9, 2022
1 parent 00f1c95 commit edf0f56
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@ on:

jobs:
build_and_publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- uses: abatilo/[email protected]
with:
poetry-version: 1.1.6
- run: poetry install
- run: poetry build
- run: poetry publish
- uses: actions/checkout@v3
- run: pipx run poetry build
- run: pipx run poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

0 comments on commit edf0f56

Please sign in to comment.