Skip to content

Commit

Permalink
Merging the latest from dev into main (#4)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
AzorianMatt authored Jan 16, 2024
1 parent d15576a commit 2821e36
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/project-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 2821e36

Please sign in to comment.