Skip to content

Commit e767d52

Browse files
authored
build-matplotlib: use correct publish logic (#186)
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 <tgamblin@baylibre.com>
1 parent 0319f38 commit e767d52

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

.github/workflows/build-matplotlib.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -173,28 +173,17 @@ jobs:
173173
# version. Manual trigger is the only entry point that reaches main;
174174
# PR runs sit on refs/pull/<n>/merge and skip this job.
175175
if: github.ref == 'refs/heads/main'
176-
runs-on: ubuntu-24.04-riscv
176+
runs-on: ubuntu-latest
177177
permissions:
178-
contents: read
178+
contents: write
179+
pull-requests: write
179180

180181
steps:
181-
- name: Checkout python-wheels
182-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
183-
with:
184-
path: python-wheels
185-
persist-credentials: false
186-
187-
- name: Download wheels
188-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
189-
with:
190-
name: matplotlib-${{ env.MPL_VERSION }}-cibw-wheels-riscv64
191-
path: dist
192-
193-
- name: Publish to GitLab PyPI registry
194-
uses: ./python-wheels/actions/publish-to-gitlab
182+
- name: Publish wheels and open docs PR
183+
uses: riseproject-dev/python-wheels/actions/publish-wheels@main
195184
with:
185+
artifact-pattern: matplotlib-${{ env.MPL_VERSION }}-*-manylinux_riscv64
196186
gitlab-username: ${{ vars.GITLAB_DEPLOY_USER }}
197187
gitlab-token: ${{ secrets.GITLAB_DEPLOY_TOKEN }}
198188
gitlab-project-id: ${{ vars.GITLAB_PROJECT_ID }}
199-
files: |
200-
dist/*.whl
189+
gh-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)