Skip to content

Commit

Permalink
release workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
NHagar committed Apr 4, 2024
1 parent 9f0f0b0 commit 9dc9c48
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
name: Publish to PyPI
name: Python package
on:
release:
types: [published]

push:
tags:
- "v*.*.*"
jobs:
pypi_release:
name: Builds Using Poetry and Publishes to PyPI
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install Poetry
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- name: Add Poetry to path
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- run: poetry install
- run: poetry run pytest
- run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
- name: Publish package
run: poetry publish --build
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_API_KEY }}

0 comments on commit 9dc9c48

Please sign in to comment.