Skip to content

Commit 50d0a71

Browse files
authored
Update to v4 versions with multiple artifact download (#1268)
1 parent af777be commit 50d0a71

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/build-package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: python -m build
4848

4949
- name: Upload distribution package
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: ${{ inputs.artifact_name }}
5353
path: "${{ startsWith(inputs.package, 'livekit-plugin') && 'livekit-plugins/' || '' }}${{ inputs.package }}/dist/"
@@ -82,7 +82,7 @@ jobs:
8282
CIBW_BUILD_VERBOSITY: 3
8383

8484
- name: Upload distribution package
85-
uses: actions/upload-artifact@v3
85+
uses: actions/upload-artifact@v4
8686
with:
8787
name: ${{ inputs.artifact_name }}
8888
path: livekit-plugins/livekit-plugins-browser/dist/

.github/workflows/publish-package.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
submodules: true
2828
lfs: true
2929
env:
30-
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PUSH_PAT }}
30+
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PUSH_DEPLOY_KEY }}
3131

3232
- uses: pnpm/action-setup@v4
3333
- name: Use Node.js 20
@@ -84,7 +84,7 @@ jobs:
8484
uses: livekit/agents/.github/workflows/build-package.yml@main
8585
with:
8686
package: ${{ matrix.package.name }}
87-
artifact_name: python-package-distributions
87+
artifact_name: python-package-dist-${{matrix.package.name}}
8888

8989
publish:
9090
needs:
@@ -96,10 +96,11 @@ jobs:
9696

9797
steps:
9898
- name: Download all the dists
99-
uses: actions/download-artifact@v3
99+
uses: actions/download-artifact@v4
100100
with:
101-
name: python-package-distributions
102-
path: dist/
101+
path: dist
102+
pattern: python-package-dist-*
103+
merge-multiple: true
103104

104105
- name: Publish package
105106
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29

0 commit comments

Comments
 (0)