-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): dry run releases further through
We now build, upload, and list the artifacts created on pull requests. Hopefully, this will release them as well.
- Loading branch information
1 parent
ca613b4
commit 9d61a0c
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -109,7 +109,6 @@ jobs: | |
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [build] | ||
environment: VALIDATOR_RELEASE | ||
steps: | ||
|
@@ -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 }} | ||
|