diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 7593c01be..f0f721f72 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -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/" @@ -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/ diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 05feeb366..6724f50aa 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -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 @@ -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: @@ -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