From ab130661d3df44e0236d958f74796775759f9ca7 Mon Sep 17 00:00:00 2001 From: shouzy <82171453+realshouzy@users.noreply.github.com> Date: Sun, 3 Sep 2023 23:06:33 +0200 Subject: [PATCH] Create ``pypi-to-upload.yaml`` --- .github/workflows/pypi-to-upload.yaml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pypi-to-upload.yaml diff --git a/.github/workflows/pypi-to-upload.yaml b/.github/workflows/pypi-to-upload.yaml new file mode 100644 index 0000000..00067c1 --- /dev/null +++ b/.github/workflows/pypi-to-upload.yaml @@ -0,0 +1,30 @@ +name: pypi-to-upload + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install -U pip setuptools wheel build + - name: Build package + run: python -m build -s -w + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}