From 5f492a054be29205c3ecb92e785b2e6cb50068fb Mon Sep 17 00:00:00 2001 From: Shelley Murphy Date: Mon, 29 Jan 2024 12:59:47 -0500 Subject: [PATCH] Committing an actually compiling workflow file --- .github/workflows/python-package.yaml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml index eaef3ef..94cf7b6 100644 --- a/.github/workflows/python-package.yaml +++ b/.github/workflows/python-package.yaml @@ -42,7 +42,28 @@ jobs: uses: actions/upload-artifact@v3 with: name: python-package-distributions - path: dist/me: Store the distribution packages - uses: actions/upload-artifact@v3 + path: dist/ + + publish-to-testpypi: + name: Publish Python + needs: + - build + runs-on: ubuntu-latest + + environment: + name: testpypi + url: https://test.pypi.org/p/cle-data-toolkit + + 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/