Skip to content

Commit c4399b1

Browse files
committed
workflows: build-numpy.yml: use publish-wheels
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent d1ed055 commit c4399b1

1 file changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/build-numpy.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
paths:
1313
- '.github/workflows/build-numpy.yml'
1414
- 'actions/publish-to-gitlab/**'
15+
- 'actions/publish-wheels/**'
16+
- 'ci_scripts/update_doc.py'
1517

1618
concurrency:
1719
group: ${{ github.workflow }}-${{ inputs.version || '2.5.1' }}-${{ github.head_ref || github.run_id }}
@@ -107,28 +109,11 @@ jobs:
107109
pull-requests: write
108110

109111
steps:
110-
- name: Checkout python-wheels
111-
uses: actions/checkout@v4
112-
with:
113-
fetch-depth: 0
114-
115-
- name: Download wheels
116-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
117-
with:
118-
pattern: numpy-${{ env.NUMPY_VERSION }}-*-manylinux_riscv64
119-
path: dist
120-
merge-multiple: true
121-
122-
- name: Publish to GitLab PyPI registry
123-
uses: riseproject-dev/python-wheels/actions/publish-to-gitlab@main
112+
- name: Publish wheels and open docs PR
113+
uses: riseproject-dev/python-wheels/actions/publish-wheels@main
124114
with:
115+
artifact-pattern: numpy-${{ env.NUMPY_VERSION }}-*-manylinux_riscv64
125116
gitlab-username: ${{ vars.GITLAB_DEPLOY_USER }}
126117
gitlab-token: ${{ secrets.GITLAB_DEPLOY_TOKEN }}
127118
gitlab-project-id: ${{ vars.GITLAB_PROJECT_ID }}
128-
files: |
129-
dist/*.whl
130-
131-
- name: Open docs update PR
132-
env:
133-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134-
run: python3 ci_scripts/update_doc.py
119+
gh-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)