From 4203182a0641ad45c154057286418f886cd7b611 Mon Sep 17 00:00:00 2001 From: Mattia Callegari <106533898+callegarimattia@users.noreply.github.com> Date: Mon, 15 Jan 2024 14:52:57 +0100 Subject: [PATCH] build: publish-python action (#24) * build: move to .toml * build: remove setup.py * build: python-publish.yaml --- .github/workflows/python-publish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index dfb5ddf..bcb0dc0 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,6 +1,3 @@ -# This workflows will upload a Python Package using twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - name: Upload Python Package on: @@ -11,6 +8,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + environment: + name: deploy + url: https://pypi.org/p/hotpdf steps: - uses: actions/checkout@v4 - name: Set up Python @@ -22,9 +22,6 @@ jobs: python -m pip install --upgrade pip python3 -m pip install --upgrade setuptools wheel twine build - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python -m build twine upload dist/*