diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5394f51..4201fb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Python package +name: Matrix tests on: [push] diff --git a/.github/workflows/publish-on-tag.yml b/.github/workflows/publish-on-tag.yml new file mode 100644 index 0000000..e9b2a53 --- /dev/null +++ b/.github/workflows/publish-on-tag.yml @@ -0,0 +1,15 @@ +name: Publish package +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v2.0 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }} + poetry_publish_options: "--build"