From 2821e3667446b13f4671812e49b04c6197a5ab06 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Tue, 16 Jan 2024 11:09:45 -0500 Subject: [PATCH] Merging the latest from `dev` into `main` (#4) * Added the `-d` draft argument to the GitHub CLI release create command in the project release workflow. * Updated the project release workflow to move the PyPi publishing step before the GitHub release steps to prevent invalid files from getting added to the PyPi release. --- .github/workflows/project-release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/project-release.yml b/.github/workflows/project-release.yml index 1ec0534..811447e 100644 --- a/.github/workflows/project-release.yml +++ b/.github/workflows/project-release.yml @@ -59,12 +59,12 @@ jobs: name: python-package-distributions path: dist/ - # Download the distribution files from the artifacts - - name: Download all the dists - uses: actions/download-artifact@v3 + # Upload the distribution artifacts to PyPi production environment + - name: Publish Package (PyPi) + uses: pypa/gh-action-pypi-publish@release/v1 with: - name: python-package-distributions - path: dist/ + packages-dir: dist/ + password: ${{ secrets.PYPI_TOKEN }} # Sign the distribution files with Sigstore - name: Sign the dists with Sigstore @@ -92,10 +92,3 @@ jobs: gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}' - - # Upload the distribution artifacts to PyPi production environment - - name: Publish Package (PyPi) - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: dist/ - password: ${{ secrets.PYPI_TOKEN }}