Skip to content

Commit

Permalink
ci: Consolidate poetry workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
janw committed Jan 6, 2024
1 parent 5511ebc commit 3663ed8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/poetry-build.yaml

This file was deleted.

20 changes: 15 additions & 5 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,24 @@ on:
push:
tags:
- "v*.*.*"
pull_request:

jobs:
poetry-publish:
pypi-publish:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v3
- name: Check out
uses: actions/checkout@v4

- uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Install poetry
run: pipx install poetry

- name: Build package
run: poetry build

- name: Publish package
run: poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

0 comments on commit 3663ed8

Please sign in to comment.