From a10ece05a5c4f1848c04007de2fb66a1d99774e3 Mon Sep 17 00:00:00 2001 From: Kushal Kolar Date: Fri, 17 Jan 2025 01:37:12 -0500 Subject: [PATCH 1/3] Create pypi-publish --- .github/workflows/pypi-publish | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pypi-publish diff --git a/.github/workflows/pypi-publish b/.github/workflows/pypi-publish new file mode 100644 index 0000000..dc905a0 --- /dev/null +++ b/.github/workflows/pypi-publish @@ -0,0 +1,33 @@ +name: Upload to pypi + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + lfs: true + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} From f384dcc8536561e3f5a927be966ac6cd79aeee44 Mon Sep 17 00:00:00 2001 From: Kushal Kolar Date: Fri, 17 Jan 2025 03:32:25 -0500 Subject: [PATCH 2/3] remove lfs, not required for jupyter_rfb --- .github/workflows/pypi-publish | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pypi-publish b/.github/workflows/pypi-publish index dc905a0..690910d 100644 --- a/.github/workflows/pypi-publish +++ b/.github/workflows/pypi-publish @@ -14,8 +14,6 @@ jobs: steps: - uses: actions/checkout@v4 - with: - lfs: true - name: Set up Python uses: actions/setup-python@v5 with: From 084871597d9375e500799273f50c93fdf25b69d9 Mon Sep 17 00:00:00 2001 From: Kushal Kolar Date: Fri, 17 Jan 2025 03:32:52 -0500 Subject: [PATCH 3/3] Rename pypi-publish to pypi-publish.yml --- .github/workflows/{pypi-publish => pypi-publish.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{pypi-publish => pypi-publish.yml} (100%) diff --git a/.github/workflows/pypi-publish b/.github/workflows/pypi-publish.yml similarity index 100% rename from .github/workflows/pypi-publish rename to .github/workflows/pypi-publish.yml