Repository navigation
522 lines (505 loc) · 22.2 KB
/
Copy pathrelease.yml
File metadata and controls
522 lines (505 loc) · 22.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
name: Release
# Push a tag `vX.Y.Z` (matching the workspace version) to publish:
# - Python wheels and sdist to PyPI (trusted publishing, environment `pypi`)
# - crates to crates.io (trusted publishing, environment `crates-io`)
# - cronoq-server binaries and wheels to a GitHub release
# - multi-arch container images to ghcr.io/<owner>/cronoq and ghcr.io/<owner>/cronoq-operator
# - the TypeScript SDK to GitHub Packages as `@synaptiai/cronoq`, with a provenance attestation
# - the Helm charts to oci://ghcr.io/<owner>/charts
# Before the first release, set up the registries as RELEASING.md describes. A dry run builds,
# tests and packages everything and publishes nothing.
on:
push:
tags: ["v*.*.*"]
workflow_dispatch:
inputs:
dry_run:
description: Build and test everything but publish nothing
type: boolean
default: true
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
PUBLISH: ${{ startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'push' || inputs.dry_run == false) }}
jobs:
verify:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# cronoq-py (abi3-py314) needs a Python 3.14+ interpreter to build.
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.14"
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable
# Any run on a tag checks the versions, including a manual run that publishes.
- name: Tag matches workspace and package versions
if: startsWith(github.ref, 'refs/tags/v')
run: |
tag="${GITHUB_REF_NAME#v}"
ws=$(cargo metadata --no-deps --format-version 1 | python3 -c 'import json,sys; print(next(p["version"] for p in json.load(sys.stdin)["packages"] if p["name"]=="cronoq"))')
test "$tag" = "$ws" || { echo "tag $tag != crate version $ws"; exit 1; }
grep -q "^## \[$tag\]" CHANGELOG.md || { echo "CHANGELOG.md has no [$tag] section"; exit 1; }
npm=$(python3 -c 'import json; print(json.load(open("sdks/typescript/package.json"))["version"])')
test "$tag" = "$npm" || { echo "tag $tag != sdks/typescript/package.json version $npm"; exit 1; }
for chart in deploy/helm/cronoq deploy/helm/cronoq-operator; do
grep -qx "version: $tag" "$chart/Chart.yaml" || { echo "$chart: version is not $tag"; exit 1; }
grep -qx "appVersion: \"$tag\"" "$chart/Chart.yaml" || { echo "$chart: appVersion is not $tag"; exit 1; }
done
- run: cargo test --workspace
- run: cargo publish --workspace --dry-run
wheels:
needs: verify
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-24.04, target: x86_64, manylinux: auto }
- { os: ubuntu-24.04, target: aarch64, manylinux: auto }
- { os: macos-15-intel, target: x86_64 }
- { os: macos-15, target: aarch64 }
- { os: windows-2022, target: x64 }
- { os: windows-11-arm, target: aarch64 }
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1
with:
working-directory: crates/cronoq-py
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux }}
args: --release --out dist
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: wheels-${{ matrix.os }}-${{ matrix.target }}
path: crates/cronoq-py/dist
sdist:
needs: verify
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1
with:
working-directory: crates/cronoq-py
command: sdist
args: --out dist
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: sdist
path: crates/cronoq-py/dist
test-wheels:
needs: wheels
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-24.04, artifact: wheels-ubuntu-24.04-x86_64, python: "3.14" }
- { os: ubuntu-24.04, artifact: wheels-ubuntu-24.04-x86_64, python: "3.15" }
- { os: ubuntu-24.04-arm, artifact: wheels-ubuntu-24.04-aarch64, python: "3.14" }
- { os: macos-15-intel, artifact: wheels-macos-15-intel-x86_64, python: "3.14" }
- { os: macos-15, artifact: wheels-macos-15-aarch64, python: "3.14" }
- { os: macos-15, artifact: wheels-macos-15-aarch64, python: "3.15" }
- { os: windows-2022, artifact: wheels-windows-2022-x64, python: "3.14" }
- { os: windows-2022, artifact: wheels-windows-2022-x64, python: "3.15" }
# grpcio has no Windows ARM wheel to install, so only the engine bindings are tested there.
- { os: windows-11-arm, artifact: wheels-windows-11-arm-aarch64, python: "3.14", extras: none }
env:
CRONOQ_REQUIRE_SERVER: "1"
CRONOQ_WHEEL_EXTRAS: ${{ matrix.extras || 'client' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python }}
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable
- run: cargo build --locked -p cronoq-server
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ matrix.artifact }}
path: dist
- shell: bash
run: bash .github/scripts/test_wheel.sh dist
server-binaries:
needs: verify
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
attestations: write
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-24.04, target: x86_64-unknown-linux-gnu }
- { os: ubuntu-24.04-arm, target: aarch64-unknown-linux-gnu }
- { os: macos-15-intel, target: x86_64-apple-darwin }
- { os: macos-15, target: aarch64-apple-darwin }
- { os: windows-2022, target: x86_64-pc-windows-msvc }
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable
targets: ${{ matrix.target }}
- run: cargo build --release --locked -p cronoq-server -p cronoq-cli --target ${{ matrix.target }}
- name: Package
shell: bash
run: |
name="cronoq-server-${GITHUB_REF_NAME}-${{ matrix.target }}"
mkdir "$name"
cp LICENSE-MIT LICENSE-APACHE README.md deploy/cronoq.example.toml "$name/"
if [ -f "target/${{ matrix.target }}/release/cronoq-server.exe" ]; then
cp "target/${{ matrix.target }}/release/cronoq-server.exe" "target/${{ matrix.target }}/release/cronoq.exe" "$name/"
7z a "$name.zip" "$name" > /dev/null
else
cp "target/${{ matrix.target }}/release/cronoq-server" "target/${{ matrix.target }}/release/cronoq" "$name/"
tar czf "$name.tar.gz" "$name"
fi
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
if: env.PUBLISH == 'true'
with:
subject-path: cronoq-server-*.*
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: server-${{ matrix.target }}
path: cronoq-server-*.*
# The embeddable C library (crates/cronoq-ffi): a dynamic and a static library and the
# header per platform, for the Go and Swift wrappers and for any other language.
embed-libraries:
needs: verify
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
attestations: write
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-24.04, target: x86_64-unknown-linux-gnu, dylib: libcronoq_ffi.so, static: libcronoq_ffi.a }
- { os: ubuntu-24.04-arm, target: aarch64-unknown-linux-gnu, dylib: libcronoq_ffi.so, static: libcronoq_ffi.a }
- { os: macos-15-intel, target: x86_64-apple-darwin, dylib: libcronoq_ffi.dylib, static: libcronoq_ffi.a }
- { os: macos-15, target: aarch64-apple-darwin, dylib: libcronoq_ffi.dylib, static: libcronoq_ffi.a }
# The GNU target: cgo links with the GNU toolchain on Windows.
- { os: windows-2022, target: x86_64-pc-windows-gnu, dylib: cronoq_ffi.dll, static: libcronoq_ffi.a }
# Windows on ARM64 has no GNU toolchain on the runners: the MSVC build. Its
# dynamic library is what the Go wrapper loads without cgo.
- { os: windows-11-arm, target: aarch64-pc-windows-msvc, dylib: cronoq_ffi.dll, static: cronoq_ffi.lib }
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable
targets: ${{ matrix.target }}
# Two variants: without a store (tasks in memory), and with the SQLite store.
- name: Build and package
shell: bash
run: |
package() { # archive name, cargo build arguments...
local name=$1
shift
cargo build --release --locked -p cronoq-ffi --target ${{ matrix.target }} "$@"
mkdir -p "$name/static"
cp LICENSE-MIT LICENSE-APACHE crates/cronoq-ffi/README.md crates/cronoq-ffi/include/cronoq.h "$name/"
cp "target/${{ matrix.target }}/release/${{ matrix.dylib }}" "$name/"
cp "target/${{ matrix.target }}/release/${{ matrix.static }}" "$name/static/"
if [ "${{ runner.os }}" = "Windows" ]; then
7z a "$name.zip" "$name" > /dev/null
else
tar czf "$name.tar.gz" "$name"
fi
}
package "cronoq-embed-${GITHUB_REF_NAME}-${{ matrix.target }}"
package "cronoq-embed-sqlite-${GITHUB_REF_NAME}-${{ matrix.target }}" --features sqlite
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
if: env.PUBLISH == 'true'
with:
subject-path: cronoq-embed-*.*
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: embed-${{ matrix.target }}
path: cronoq-embed-*.*
# Apple builds of the embedded library: size report, binary framework, simulator tests.
apple:
needs: verify
uses: ./.github/workflows/apple.yml
permissions:
contents: read
publish-pypi:
needs: [test-wheels, sdist]
if: startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'push' || inputs.dry_run == false)
runs-on: ubuntu-24.04
environment: pypi
permissions:
id-token: write
attestations: write
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: "{wheels-*,sdist}"
merge-multiple: true
path: dist
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: dist/*
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
with:
packages-dir: dist
publish-crates:
needs: [verify, test-wheels]
if: startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'push' || inputs.dry_run == false)
runs-on: ubuntu-24.04
environment: crates-io
permissions:
id-token: write
env:
# crates.io trusted publishing can only be configured for crates that already exist, so the
# first release uses an API token stored as the environment secret CARGO_REGISTRY_TOKEN.
# Delete the secret once trusted publishing is configured (see RELEASING.md).
BOOTSTRAP_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
with:
toolchain: stable
- uses: rust-lang/crates-io-auth-action@3268eb413133e2960fa4ae0e963ca76380c54cd9 # v1
if: env.BOOTSTRAP_TOKEN == ''
id: auth
# One crate at a time, in dependency order (crates with `publish = false` are skipped).
# crates.io limits how fast new crates can be created, so a rate-limited publish waits and
# tries again, and versions already on crates.io are skipped, so a re-run finishes the job.
- name: Publish crates
shell: bash
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token || env.BOOTSTRAP_TOKEN }}
run: |
version="${GITHUB_REF_NAME#v}"
crates=$(cargo metadata --no-deps --format-version 1 | python3 -c '
import json, sys
ws = {p["name"]: p for p in json.load(sys.stdin)["packages"] if p.get("publish") is None}
deps = {n: {d["name"] for d in p["dependencies"] if d["name"] in ws and d["kind"] != "dev"} for n, p in ws.items()}
done = []
while len(done) < len(ws):
ready = sorted(n for n in ws if n not in done and deps[n] <= set(done))
if not ready:
sys.exit("dependency cycle between workspace crates")
done += ready
print(" ".join(done))')
for crate in $crates; do
if curl -sf -A "cronoq-release (github.com/synaptiai/cronoq)" \
"https://crates.io/api/v1/crates/$crate/$version" > /dev/null; then
echo "$crate $version is already on crates.io"
continue
fi
for attempt in 1 2 3 4 5 6 7 8 9 10; do
if cargo publish -p "$crate" 2> publish.log; then
cat publish.log
continue 2
fi
cat publish.log
if ! grep -qiE "429|too many requests|rate limit" publish.log; then
exit 1
fi
echo "crates.io rate limit; waiting 10 minutes (attempt $attempt)"
sleep 600
done
echo "$crate: still rate limited after 10 attempts"
exit 1
done
container:
# Images (and the charts, which wait for them) are pushed only after the wheel tests pass.
needs: [verify, test-wheels]
runs-on: ubuntu-24.04
strategy:
matrix:
include:
- image: cronoq
dockerfile: Dockerfile
- image: cronoq-operator
dockerfile: Dockerfile.operator
permissions:
contents: read
packages: write
id-token: write
attestations: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
if: env.PUBLISH == 'true'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- id: build
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: linux/amd64,linux/arm64
push: ${{ env.PUBLISH == 'true' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
if: env.PUBLISH == 'true'
with:
subject-name: ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true
npm-package:
needs: verify
runs-on: ubuntu-24.04
defaults:
run:
working-directory: sdks/typescript
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "24"
cache: npm
cache-dependency-path: sdks/typescript/package-lock.json
- run: npm ci
# Builds through `prepack`; the tarball (synaptiai-cronoq-X.Y.Z.tgz) is what `npm publish`
# uploads, and it is also attached to the GitHub release.
- run: |
mkdir -p "$RUNNER_TEMP/npm"
npm pack --pack-destination "$RUNNER_TEMP/npm"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: npm-package
path: ${{ runner.temp }}/npm/*.tgz
publish-npm:
needs: [npm-package, test-wheels]
if: startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'push' || inputs.dry_run == false)
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
id-token: write
attestations: write
env:
# GitHub Packages accepts the workflow's own token for a package linked to this repository
# (the `repository` field of package.json).
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "24"
registry-url: https://npm.pkg.github.com
scope: "@synaptiai"
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: npm-package
path: npm
- name: Refuse a tarball that does not match the tag, or a version already published
# bash with pipefail: a failing tar stops the step.
shell: bash
run: |
shopt -s nullglob
tarballs=(npm/*.tgz)
test "${#tarballs[@]}" -eq 1 || { echo "expected one npm tarball, found ${#tarballs[@]}"; exit 1; }
tag="${GITHUB_REF_NAME#v}"
meta=$(tar -xOzf "${tarballs[0]}" package/package.json)
name=$(node -p 'JSON.parse(require("fs").readFileSync(0)).name' <<<"$meta")
version=$(node -p 'JSON.parse(require("fs").readFileSync(0)).version' <<<"$meta")
test "$version" = "$tag" || { echo "the tarball is version $version, the tag is $tag"; exit 1; }
if npm view "$name@$version" version >/dev/null 2>&1; then
echo "$name@$version is already published"; exit 1
fi
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: npm/*.tgz
# `./`: without it, npm reads `npm/<file>.tgz` as a GitHub repository (owner/repo).
- run: npm publish ./npm/*.tgz
charts:
needs: [verify, container]
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
with:
version: v4.3.1
- run: helm package deploy/helm/cronoq deploy/helm/cronoq-operator --destination charts
- name: Push to oci://ghcr.io/<owner>/charts
if: env.PUBLISH == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
ACTOR: ${{ github.actor }}
run: |
echo "$GH_TOKEN" | helm registry login ghcr.io -u "$ACTOR" --password-stdin
for c in charts/*.tgz; do helm push "$c" "oci://ghcr.io/${OWNER,,}/charts"; done
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: charts
path: charts/*.tgz
github-release:
needs: [publish-pypi, publish-crates, publish-npm, server-binaries, embed-libraries, apple, container, charts]
if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
path: artifacts
merge-multiple: true
- name: Release notes from CHANGELOG.md
run: |
tag="${GITHUB_REF_NAME#v}"
awk -v v="$tag" '$0 ~ "^## \\[" v "\\]" {on=1; next} /^## \[/ {on=0} on' CHANGELOG.md > notes.md
- uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
with:
body_path: notes.md
files: |
artifacts/cronoq-server-*
artifacts/cronoq-embed-*
artifacts/CCronoq.xcframework.zip
artifacts/CCronoq.xcframework.zip.checksum
artifacts/CCronoq-sqlite.xcframework.zip
artifacts/CCronoq-sqlite.xcframework.zip.checksum
artifacts/*.whl
artifacts/cronoq-[0-9]*.tgz
artifacts/cronoq-operator-[0-9]*.tgz
artifacts/synaptiai-cronoq-[0-9]*.tgz
artifacts/*.tar.gz