From 1a9116e7ef2ed2657c025bdb3b07632abb6d029b Mon Sep 17 00:00:00 2001 From: Commandcracker Date: Sun, 19 May 2024 15:33:49 +0200 Subject: [PATCH] Update CD --- .github/workflows/python-publish.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8ed2f2d..9f4d9d0 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,12 +1,9 @@ -name: Upload Python Package +name: Publish on: - release: - types: - - published - -permissions: - contents: read + push: + branches: + - main jobs: deploy: @@ -14,22 +11,22 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - + - name: Set up Python 🧰 uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d with: python-version: 3.x - + - 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@81e9d935c883d0b210363ab89cf05f3894778450 + uses: Commandcracker/pypi-publish@32e78ea691b666534c641470e9d74e4deca05bcc with: - user: __token__ - password: '${{ secrets.PYPI_API_TOKEN }}' + password: ${{ secrets.PYPI_API_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }}