Skip to content

Commit

Permalink
Update to v4 versions with multiple artifact download (livekit#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Dec 21, 2024
1 parent af777be commit 50d0a71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: python -m build

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

- name: Upload distribution package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact_name }}
path: livekit-plugins/livekit-plugins-browser/dist/
11 changes: 6 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
submodules: true
lfs: true
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PUSH_PAT }}
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PUSH_DEPLOY_KEY }}

- uses: pnpm/action-setup@v4
- name: Use Node.js 20
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
uses: livekit/agents/.github/workflows/build-package.yml@main
with:
package: ${{ matrix.package.name }}
artifact_name: python-package-distributions
artifact_name: python-package-dist-${{matrix.package.name}}

publish:
needs:
Expand All @@ -96,10 +96,11 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
path: dist
pattern: python-package-dist-*
merge-multiple: true

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
Expand Down

0 comments on commit 50d0a71

Please sign in to comment.