Skip to content

Commit ae53609

Browse files
committed
Update CI workflow for bindings
1 parent 86d8f70 commit ae53609

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

.github/workflows/pysplashsurf_CI.yml

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
#
44
# maturin generate-ci github
55
#
6-
name: Pysplashsurf CI
6+
name: PySplashsurf CI
77

88
on:
9+
#push:
910
workflow_dispatch:
11+
release:
12+
types: [published]
1013

1114
permissions:
1215
contents: read
@@ -32,18 +35,14 @@ jobs:
3235
strategy:
3336
matrix:
3437
platform:
35-
- runner: ubuntu-22.04
38+
- runner: ubuntu-24.04
3639
target: x86_64
37-
- runner: ubuntu-22.04
40+
- runner: ubuntu-24.04
3841
target: x86
39-
- runner: ubuntu-22.04
42+
- runner: ubuntu-24.04
4043
target: aarch64
41-
- runner: ubuntu-22.04
44+
- runner: ubuntu-24.04
4245
target: armv7
43-
- runner: ubuntu-22.04
44-
target: s390x
45-
- runner: ubuntu-22.04
46-
target: ppc64le
4746
steps:
4847
- uses: actions/checkout@v4
4948
- name: Download stub artifact
@@ -153,32 +152,32 @@ jobs:
153152
name: wheels-sdist
154153
path: dist
155154

156-
# release:
157-
# name: Release
158-
# runs-on: ubuntu-latest
159-
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
160-
# needs: [linux, musllinux, windows, macos, sdist]
161-
# permissions:
162-
# # Use to sign the release artifacts
163-
# id-token: write
164-
# # Used to upload release artifacts
165-
# contents: write
166-
# # Used to generate artifact attestation
167-
# attestations: write
168-
# steps:
169-
# - uses: actions/download-artifact@v4
170-
# - name: Generate artifact attestation
171-
# uses: actions/attest-build-provenance@v1
172-
# with:
173-
# subject-path: 'wheels-*/*'
174-
# - name: Publish to PyPI
175-
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
176-
# uses: PyO3/maturin-action@v1
177-
# env:
178-
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
179-
# with:
180-
# command: upload
181-
# args: --non-interactive --skip-existing wheels-*/*
155+
release:
156+
name: Release
157+
runs-on: ubuntu-latest
158+
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
159+
needs: [linux, windows, macos, sdist]
160+
permissions:
161+
# Use to sign the release artifacts
162+
id-token: write
163+
# Used to upload release artifacts
164+
contents: write
165+
# Used to generate artifact attestation
166+
attestations: write
167+
steps:
168+
- uses: actions/download-artifact@v4
169+
#- name: Generate artifact attestation
170+
# uses: actions/attest-build-provenance@v1
171+
# with:
172+
# subject-path: 'wheels-*/*'
173+
- name: Publish to PyPI
174+
#if: ${{ startsWith(github.ref, 'refs/tags/') }}
175+
uses: PyO3/maturin-action@v1
176+
env:
177+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
178+
with:
179+
command: upload
180+
args: --non-interactive --skip-existing wheels-*/*
182181

183182
build_wheel:
184183
runs-on: ubuntu-latest
@@ -264,4 +263,4 @@ jobs:
264263
emoji: false
265264
job-summary: true
266265
click-to-expand: true
267-
report-title: 'Pytest Report'
266+
report-title: 'Pytest Report'

0 commit comments

Comments
 (0)