Skip to content

Commit

Permalink
Save and restore the dist directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Nov 3, 2024
1 parent 68cc77b commit a47ed5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
python -m build
python -m twine check --strict dist/*
- name: Upload dist directory as artifact
uses: actions/upload-artifact@v4
with:
path: dist/

pypi-publish:
needs: [build]
name: upload release to PyPI
Expand All @@ -104,4 +109,8 @@ jobs:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Download dist artifact
uses: actions/download-artifact@v4
with:
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a47ed5f

Please sign in to comment.