From 03f3409d3fea027b5ee83a2c953de61876665627 Mon Sep 17 00:00:00 2001 From: Damyan Yordanov Date: Wed, 24 Jan 2024 11:49:16 +0100 Subject: [PATCH] Add pypi publishing action (#9) --- .github/workflows/pypi-publish.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pypi-publish.yaml diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml new file mode 100644 index 0000000..51411f1 --- /dev/null +++ b/.github/workflows/pypi-publish.yaml @@ -0,0 +1,22 @@ +name: 'Publish to PyPI.org' + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + pypi: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - run: python3 -m pip install --upgrade build && python3 -m build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}