Skip to content

Commit fd3a639

Browse files
dankinglwwmanning
authored andcommitted
Dk/fix release plz workflow again (#863)
1 parent b05b750 commit fd3a639

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/publish-vortex.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Upload wheels
4949
uses: actions/upload-artifact@v4
5050
with:
51-
name: wheels
51+
name: osx-wheels
5252
path: target/wheels
5353
linux:
5454
runs-on: ubuntu-latest
@@ -85,7 +85,7 @@ jobs:
8585
- name: Upload wheels
8686
uses: actions/upload-artifact@v4
8787
with:
88-
name: wheels
88+
name: linux-wheels
8989
path: target/wheels
9090
release:
9191
runs-on: ubuntu-latest
@@ -98,8 +98,12 @@ jobs:
9898
steps:
9999
- uses: actions/download-artifact@v4
100100
with:
101-
name: wheels
101+
# https://github.com/actions/download-artifact?tab=readme-ov-file#download-all-artifacts
102+
# "To download them to the same directory:"
102103
path: dist/
104+
merge-multiple: true
105+
- name: Display structure of downloaded files
106+
run: ls -R dist/
103107
- name: Publish to PyPI
104108
uses: pypa/gh-action-pypi-publish@release/v1
105109
with:

.github/workflows/release-plz.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ jobs:
3434
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3535
release-to-pypi:
3636
name: Release to PyPI
37-
if: ${{ jobs.release-plz.outputs.releases_created }}
37+
needs: release-plz
38+
permissions:
39+
id-token: write # IMPORTANT: mandatory for trusted publishing
40+
if: ${{ needs.release-plz.outputs.releases_created }}
3841
uses: ./.github/workflows/publish-vortex.yml

0 commit comments

Comments
 (0)