From fc7baee411e8dd3a4bb5e8239b36be4b4c5e22e0 Mon Sep 17 00:00:00 2001 From: Clif Bratcher Date: Mon, 13 May 2024 23:18:27 -0400 Subject: [PATCH] Attempt at automated publishing --- .github/workflows/main.yml | 2 +- .github/workflows/publish-on-tag.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-on-tag.yml 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"