Skip to content

Commit

Permalink
feat(build): dry run releases further through
Browse files Browse the repository at this point in the history
We now build, upload, and list the artifacts created on pull requests. Hopefully, this will release them as well.
  • Loading branch information
wackywendell committed Nov 7, 2024
1 parent ca613b4 commit 9d61a0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Display structure of dist directory
run: ls -R dist
- name: Upload wheels
if: "startsWith(github.ref, 'refs/tags/')"
# if: "startsWith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@v4
with:
# Ensure we have a different name for every artifact, by using the
Expand All @@ -109,7 +109,6 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [build]
environment: VALIDATOR_RELEASE
steps:
Expand All @@ -121,12 +120,14 @@ jobs:
- name: Display available artifacts
run: ls -R .
- name: Publish to GitHub release page
if: "startsWith(github.ref, 'refs/tags/')"
uses: softprops/action-gh-release@v2
with:
files: |
*.whl
*.tar.gz
- name: Publish to PyPI
if: "startsWith(github.ref, 'refs/tags/')"
uses: PyO3/[email protected]
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit 9d61a0c

Please sign in to comment.