From 74b5e5bc64764323a043f7cced9e7c278d33bf58 Mon Sep 17 00:00:00 2001 From: Ethan Jacob Marx Date: Sat, 20 Jan 2024 06:10:46 -0800 Subject: [PATCH] add ci workflow to publish to pypi upon releases --- .github/workflows/publish.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..1fab680 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,18 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + environment: PyPI + steps: + - uses: actions/checkout@v2 + - + name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.16 + with: + python_version: "3.10.9" + pypi_token: ${{ secrets.PYPI_TOKEN }}