From 9f208ed804660a5eaf2032355c9b80ac400836b4 Mon Sep 17 00:00:00 2001 From: Emile de Bruyn <44635009+EmileDeBruyn@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:02:19 +0200 Subject: [PATCH] Update publish_workflow.yml --- .github/workflows/publish_workflow.yml | 33 ++++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish_workflow.yml b/.github/workflows/publish_workflow.yml index 2829042..e037d60 100644 --- a/.github/workflows/publish_workflow.yml +++ b/.github/workflows/publish_workflow.yml @@ -1,29 +1,36 @@ -name: "Publishing" +name: "Packaging and test publishing" on: push: branches: - master + jobs: - publish-to-testpypi: + build: + name: Build distribution 📦 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + publish-to-testpypi: name: Publish Python distribution to TestPyPI needs: - build runs-on: ubuntu-latest - + environment: name: TestPyPI - url: https://test.pypi.org/p/speadi - + url: https://test.pypi.org/p/SPEADI + permissions: id-token: write # IMPORTANT: mandatory for trusted publishing - + steps: - name: Download all the dists uses: actions/download-artifact@v3 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution 📦 to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ + - name: Publish distribution to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v2