From 23e5ad8b4de39e2ca71d1d8134b5673628ed41d7 Mon Sep 17 00:00:00 2001 From: Tomhe Date: Sun, 17 Sep 2023 23:29:01 +0300 Subject: [PATCH] add the package-upload workflow --- .github/workflows/poetry-publish.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/poetry-publish.yml diff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.yml new file mode 100644 index 0000000..8135179 --- /dev/null +++ b/.github/workflows/poetry-publish.yml @@ -0,0 +1,16 @@ +# This workflow will upload the new flipjump python package to pypi, using poetry-publish, everytime a new release is created. + + +name: Python package +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.17 + with: + pypi_token: ${{ secrets.PYPI_API_TOKEN }}