From c059bb46c0a8f47bbc6619b9bf9899455a6ba8d2 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Wed, 22 Jul 2026 13:36:40 -0400 Subject: [PATCH] build-matplotlib: use correct publish logic build-matplotlib.yml was merged with the old wheel publishing logic, which doesn't automatically create a doc update PR and uses more manual steps. Update it before we trigger a 3.11.1 build for matplotlib. Signed-off-by: Trevor Gamblin --- .github/workflows/build-matplotlib.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-matplotlib.yml b/.github/workflows/build-matplotlib.yml index f740537..2e64221 100644 --- a/.github/workflows/build-matplotlib.yml +++ b/.github/workflows/build-matplotlib.yml @@ -173,28 +173,17 @@ jobs: # version. Manual trigger is the only entry point that reaches main; # PR runs sit on refs/pull//merge and skip this job. if: github.ref == 'refs/heads/main' - runs-on: ubuntu-24.04-riscv + runs-on: ubuntu-latest permissions: - contents: read + contents: write + pull-requests: write steps: - - name: Checkout python-wheels - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - with: - path: python-wheels - persist-credentials: false - - - name: Download wheels - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: matplotlib-${{ env.MPL_VERSION }}-cibw-wheels-riscv64 - path: dist - - - name: Publish to GitLab PyPI registry - uses: ./python-wheels/actions/publish-to-gitlab + - name: Publish wheels and open docs PR + uses: riseproject-dev/python-wheels/actions/publish-wheels@main with: + artifact-pattern: matplotlib-${{ env.MPL_VERSION }}-*-manylinux_riscv64 gitlab-username: ${{ vars.GITLAB_DEPLOY_USER }} gitlab-token: ${{ secrets.GITLAB_DEPLOY_TOKEN }} gitlab-project-id: ${{ vars.GITLAB_PROJECT_ID }} - files: | - dist/*.whl + gh-token: ${{ secrets.GITHUB_TOKEN }}