Skip to content

Commit

Permalink
Dk/fix release plz workflow again (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Sep 18, 2024
1 parent 065d444 commit 42b9b00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-vortex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: osx-wheels
path: target/wheels
linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: linux-wheels
path: target/wheels
release:
runs-on: ubuntu-latest
Expand All @@ -98,8 +98,12 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
# https://github.com/actions/download-artifact?tab=readme-ov-file#download-all-artifacts
# "To download them to the same directory:"
path: dist/
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ jobs:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
release-to-pypi:
name: Release to PyPI
if: ${{ jobs.release-plz.outputs.releases_created }}
needs: release-plz
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
if: ${{ needs.release-plz.outputs.releases_created }}
uses: ./.github/workflows/publish-vortex.yml

0 comments on commit 42b9b00

Please sign in to comment.