Skip to content

Commit 7b77321

Browse files
authored
Merge pull request #359 from plotly/fix-reusable-workflows
Share artifacts between jobs
2 parents 3000dd5 + 6f2bc2b commit 7b77321

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,8 @@ jobs:
5050
uv pip install "${WHL_FILE}[dev]"
5151
npm run test
5252
shell: bash
53+
- name: Upload built distributions
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: package-distributions
57+
path: dist/

.github/workflows/publish-to-pypi.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@v4
26-
26+
- name: Download built distributions
27+
uses: actions/download-artifact@v4
28+
with:
29+
name: package-distributions
30+
path: dist/
2731
- name: Publish package distributions to PyPI
2832
uses: pypa/gh-action-pypi-publish@release/v1
2933
with:

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
steps:
2222
- name: Checkout repo
2323
uses: actions/checkout@v4
24+
- name: Download built distributions
25+
uses: actions/download-artifact@v4
26+
with:
27+
name: package-distributions
28+
path: dist/
2429
- name: Upload GitHub Release
2530
uses: ncipollo/release-action@v1
2631
with:

0 commit comments

Comments
 (0)