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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
# The "publish" half of the two-workflow release flow. Fires
# automatically when a Release PR (from `release-pr.yml`) merges —
# detects it via the `release: v<semver>` commit message on the
# merge commit. A `workflow_dispatch` fallback lets a human re-run
# the publish side manually when the auto-trigger needs a kick.
#
# Phase 6d: tag-all + publish-crate + publish-ffi + finalize.
# Phase 6e adds publish-desktop.
# Phase 6f adds build-python-wheels + publish-python.
# Phases 6g–6i add publish-nodejs / publish-wasm / publish-go as
# separate jobs to this same file.
#
# Design doc: docs/release-plan.md.
# One-time registry / branch-protection setup: docs/release-secrets.md.
name: Release
on:
push:
branches:
workflow_dispatch:
inputs:
version:
description: 'Version to (re-)publish. Use only when the auto-trigger needs a manual kick.'
required: true
type: string
# `contents: write` — tag creation + GitHub Release uploads.
permissions:
contents: write
# Only one release at a time across the whole workflow. Back-to-back
# merges of two Release PRs (which should never happen, but still)
# run serially rather than racing on tag creation.
concurrency:
group: release
cancel-in-progress: false
jobs:
# ---------------------------------------------------------------------------
# Step 1: figure out whether this push commit is actually a release
# (and extract the version from the commit message), or just a
# regular push we should ignore. Runs on every push to main.
detect:
name: Detect release commit
runs-on: ubuntu-latest
outputs:
version: ${{ steps.parse.outputs.version }}
should_release: ${{ steps.parse.outputs.should_release }}
steps:
- uses: actions/checkout@v4
- id: parse
# On workflow_dispatch, trust the input verbatim (validated
# by the dispatcher).
# On push, parse the top line of the HEAD commit message.
# If it matches `release: vX.Y.Z`, extract and proceed.
# Anything else is a regular commit — exit silently.
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ inputs.version }}"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "should_release=true" >> "$GITHUB_OUTPUT"
echo "::notice::Manually dispatched release for v$VERSION"
exit 0
fi
# GitHub's default squash-merge title is `<PR title> (#N)` —
# e.g. `release: v0.1.2 (#18)`. Strip the trailing ` (#N)` so
# the regex matches both the squash-merge form and the
# stripped-title form (we still recommend editing to the
# latter, but should-just-work beats should-remember).
MSG=$(git log -1 --pretty=%s | sed -E 's/ \(#[0-9]+\)$//')
if [[ "$MSG" =~ ^release:\ v([0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?)$ ]]; then
VERSION="${BASH_REMATCH[1]}"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "should_release=true" >> "$GITHUB_OUTPUT"
echo "::notice::Release commit detected: v$VERSION"
else
echo "should_release=false" >> "$GITHUB_OUTPUT"
echo "::notice::Not a release commit — skipping"
fi
# ---------------------------------------------------------------------------
# Step 2: push per-product tags against the current commit. Runs
# BEFORE any publish step so a bad version number (e.g., tag
# already exists for some reason) aborts the whole release cleanly.
#
# As of Phase 6f, we tag:
# - sqlrite-v<V> (Rust engine)
# - sqlrite-ffi-v<V> (C FFI prebuilt binaries)
# - sqlrite-desktop-v<V> (Tauri desktop installers)
# - sqlrite-py-v<V> (Python wheels on PyPI)
# - v<V> (umbrella)
#
# Later phases add sqlrite-node-v<V>, sqlrite-wasm-v<V>,
# sdk/go/v<V> as their publish jobs come online.
#
# Idempotent on re-run: if a tag already exists (partial-failure
# scenario where publish-crate succeeded but publish-ffi failed,
# say), we skip instead of failing. Lets "Re-run failed jobs" in
# the GitHub UI actually work.
tag-all:
name: Tag all products
needs: detect
if: needs.detect.outputs.should_release == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Need tag history to check existing tags.
fetch-depth: 0
- name: Configure git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Create + push tags
run: |
V="${{ needs.detect.outputs.version }}"
TAGS=(
"sqlrite-v$V"
"sqlrite-ffi-v$V"
"sqlrite-desktop-v$V"
"sqlrite-py-v$V"
"v$V"
)
for tag in "${TAGS[@]}"; do
if git rev-parse "$tag" >/dev/null 2>&1; then
echo "::notice::Tag $tag already exists — skipping (re-run scenario)"
else
git tag "$tag"
echo "Created tag $tag"
fi
done
git push --tags
# ---------------------------------------------------------------------------
# Step 3a: publish the Rust engine crate to crates.io + create
# its per-product GitHub Release. Gated by the `release`
# environment's required-reviewer rule (a maintainer has to
# click Approve before this job actually runs).
publish-crate:
name: Publish sqlrite crate to crates.io
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: publish-crate
- name: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
# `--no-verify` skips the rebuild+test that publish does
# by default — CI already ran on the same commit on the
# Release PR, so re-running here is duplicate work.
#
# Package name on crates.io is `sqlrite-engine`, not
# `sqlrite` — the latter was taken by an unrelated project
# (see root Cargo.toml for context). The [lib] name is
# still `sqlrite`, so downstream code writes `use sqlrite::…`.
cargo publish -p sqlrite-engine --no-verify
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: sqlrite-v${{ needs.detect.outputs.version }}
name: Rust engine v${{ needs.detect.outputs.version }}
body: |
Published to crates.io: https://crates.io/crates/sqlrite-engine/${{ needs.detect.outputs.version }}
```toml
[dependencies]
sqlrite-engine = "${{ needs.detect.outputs.version }}"
```
```rust
// The [lib] name stays `sqlrite`, so the import alias is
// the short one even though the package name is longer.
use sqlrite::{Database, ExecutionResult};
```
See the umbrella release [v${{ needs.detect.outputs.version }}](../../releases/tag/v${{ needs.detect.outputs.version }}) for the full changelog.
generate_release_notes: true
# ---------------------------------------------------------------------------
# Step 3b: build `libsqlrite_c` for each supported platform and
# upload the tarballs to the `sqlrite-ffi-v<V>` GitHub Release.
#
# Matrix covers the platforms the Go / Python / Node SDKs' cgo /
# dlopen paths care about. Note: macos-latest is Apple Silicon
# (aarch64). A universal binary (x86_64 + aarch64 lipo'd
# together) is a follow-up — the MVP ships aarch64-only for
# macOS. Add `macos-13` to the matrix if x86_64 Mac support
# becomes a real ask.
publish-ffi:
name: Publish C FFI (${{ matrix.platform }})
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ${{ matrix.os }}
environment: release
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux-x86_64
shared_lib: libsqlrite_c.so
static_lib: libsqlrite_c.a
- os: ubuntu-24.04-arm
platform: linux-aarch64
shared_lib: libsqlrite_c.so
static_lib: libsqlrite_c.a
- os: macos-latest
platform: macos-aarch64
shared_lib: libsqlrite_c.dylib
static_lib: libsqlrite_c.a
- os: windows-latest
platform: windows-x86_64
shared_lib: sqlrite_c.dll
static_lib: sqlrite_c.lib
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: publish-ffi-${{ matrix.platform }}
- name: Build libsqlrite_c
run: cargo build --release -p sqlrite-ffi
- name: Package tarball
shell: bash
run: |
V="${{ needs.detect.outputs.version }}"
STAGE="sqlrite-ffi-v$V-${{ matrix.platform }}"
mkdir -p "$STAGE/lib" "$STAGE/include"
cp "target/release/${{ matrix.shared_lib }}" "$STAGE/lib/"
cp "target/release/${{ matrix.static_lib }}" "$STAGE/lib/" 2>/dev/null || \
echo "::warning::static lib ${{ matrix.static_lib }} not found on ${{ matrix.platform }} — shipping shared lib only"
cp "sqlrite-ffi/include/sqlrite.h" "$STAGE/include/"
# README pointer so end users know what they're looking at
# when they untar the download.
cat > "$STAGE/README" <<EOF
SQLRite C FFI v$V — ${{ matrix.platform }}
Contents:
lib/ ${{ matrix.shared_lib }} — dynamic library to link against
lib/ ${{ matrix.static_lib }} — static library (if present)
include/ sqlrite.h — C header
Full docs: https://github.com/joaoh82/rust_sqlite/blob/main/sqlrite-ffi/README.md
EOF
tar czf "$STAGE.tar.gz" "$STAGE"
# Emit the path for the upload step below.
echo "ASSET=$STAGE.tar.gz" >> "$GITHUB_ENV"
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: sqlrite-ffi-v${{ needs.detect.outputs.version }}
name: C FFI v${{ needs.detect.outputs.version }}
body: |
Prebuilt `libsqlrite_c` for every supported platform, plus the `sqlrite.h` header.
Download the tarball for your platform, extract, and link:
```
tar xzf sqlrite-ffi-v${{ needs.detect.outputs.version }}-<platform>.tar.gz
# lib/ — dynamic + static libraries
# include/sqlrite.h — header to #include
```
See the umbrella release [v${{ needs.detect.outputs.version }}](../../releases/tag/v${{ needs.detect.outputs.version }}) for the full changelog.
files: ${{ env.ASSET }}
generate_release_notes: true
# ---------------------------------------------------------------------------
# Step 3c: build the Tauri desktop app for each supported platform
# and upload the installers to the `sqlrite-desktop-v<V>` GitHub
# Release. (Phase 6e.)
#
# Matrix mirrors publish-ffi's — same three OS families, same
# "aarch64 on macOS, x86_64 elsewhere" choice. The actual installer
# formats per platform come from Tauri's bundler, not the matrix:
# - ubuntu-22.04 → AppImage + .deb (x86_64)
# - macos-latest → .dmg (aarch64)
# - windows-latest → .msi (x86_64)
#
# ubuntu-22.04 (not ubuntu-latest) is deliberate: AppImage links
# glibc at build time, so building on 22.04 (glibc 2.35) yields
# an AppImage that runs on any distro with glibc ≥ 2.35 — which
# covers everything shipped since 2022. Building on ubuntu-latest
# (24.04, glibc 2.39) would produce an AppImage that refuses to
# launch on Debian 12 / Ubuntu 22.04 and older.
#
# macOS universal (x86_64 + aarch64 lipo'd together) + Linux
# aarch64 desktop are follow-ups — same MVP-simplicity reasoning
# as publish-ffi. Apple Silicon is the majority of Mac downloads
# and x86_64 Linux is the majority of Linux downloads, so this
# covers 95%+ of users on day one.
#
# Installers ship **unsigned** — Phase 6.1 wires up Apple
# Developer ID + Windows code-signing cert. Unsigned installers
# trigger the expected "unidentified developer" / SmartScreen
# warnings; the release body explains how to bypass them.
publish-desktop:
name: Publish desktop (${{ matrix.platform }})
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ${{ matrix.os }}
environment: release
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
platform: linux-x86_64
- os: macos-latest
platform: macos-aarch64
- os: windows-latest
platform: windows-x86_64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: desktop/package-lock.json
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: publish-desktop-${{ matrix.platform }}
workspaces: './ -> target'
# Linux-only: Tauri's webview backend is webkit2gtk, which
# isn't preinstalled on GitHub runners. libayatana-appindicator
# / librsvg2 / patchelf are the rest of the standard Tauri
# Linux build kit. Matches the `desktop-build` job in ci.yml.
- name: Install Tauri Linux deps
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- name: npm ci
working-directory: desktop
run: npm ci
# Icons (icon.ico, icon.icns, size-specific PNGs for Linux,
# mobile assets) are pre-generated in the repo via `npx tauri
# icon src-tauri/icons/icon.png` and committed to
# `desktop/src-tauri/icons/`. That keeps CI deterministic and
# saves ~10s per matrix cell; the tradeoff is that anyone
# changing `icon.png` needs to re-run `tauri icon` locally and
# commit the regenerated assets (PR review catches this).
# tauri-action does: frontend build (via beforeBuildCommand) →
# `cargo tauri build` → bundle installers per platform → upload
# each installer to the target GitHub Release. It reads
# tauri.conf.json for bundle config, so flipping `bundle.active`
# from `false` to `true` there is what actually causes installers
# to get produced. `tagName` is templated so the action doesn't
# create its own tag — we already did that in `tag-all`.
- name: Build + upload installers
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: sqlrite-desktop-v${{ needs.detect.outputs.version }}
releaseName: Desktop v${{ needs.detect.outputs.version }}
releaseBody: |
SQLRite desktop app — unsigned installers. This release wave ships:
- **Linux**: `.AppImage` + `.deb` (Debian/Ubuntu) + `.rpm` (Fedora/RHEL), x86_64
- **macOS**: `.dmg` + raw `.app.tar.gz`, Apple Silicon (aarch64). Intel Macs not supported yet — tracked as a Phase 6e follow-up (universal dmg).
- **Windows**: `.msi` + `.exe` (NSIS installer), x86_64
### ⚠️ Unsigned installer warnings
Installers aren't code-signed yet (Phase 6.1 wires up Apple Developer ID + Windows code-signing). First-launch warnings to expect:
**macOS — "SQLRite is damaged and can't be opened" or "unidentified developer":**
```bash
xattr -cr /Applications/SQLRite.app
```
This strips the `com.apple.quarantine` attribute your browser attached on download. macOS Gatekeeper shows "damaged" (not the gentler "unidentified developer") because Tauri ad-hoc signs the binary — Apple Silicon *requires* a signature, even an ad-hoc one, but quarantined ad-hoc signatures trip a stricter Gatekeeper path. The app is fine; the signature just isn't from a registered Apple Developer ID.
**Windows — SmartScreen "Windows protected your PC":**
Click "More info" → "Run anyway".
**Linux — AppImage:**
```bash
chmod +x SQLRite_*_amd64.AppImage
./SQLRite_*_amd64.AppImage
```
See the umbrella release [v${{ needs.detect.outputs.version }}](../../releases/tag/v${{ needs.detect.outputs.version }}) for the full changelog.
releaseDraft: false
prerelease: false
projectPath: desktop
# tauri-action's default is to create the release if it
# doesn't exist. Since we want the release to aggregate
# artifacts across all three matrix jobs, the first job
# to finish creates it; the other two upload additional
# files to the same release. (action is idempotent on
# this — it uses `tagName` as the identity key.)
# ---------------------------------------------------------------------------
# Step 3d: build Python wheels for every supported platform.
# (Phase 6f — build half; publish half lives in the next job.)
#
# Why the split: PyPI expects wheels to be uploaded as one
# batch — if publish-python-wheels had publish logic inline,
# each matrix cell would race to upload its wheel independently,
# and a failure mid-matrix would leave PyPI with a partial wave.
# The two-job shape lets us aggregate every wheel (+ sdist) into
# one `dist/` directory and do the upload as a single atomic
# step in the `publish-python` job below.
#
# Matrix mirrors publish-ffi / publish-desktop — same four
# OS / arch combinations. abi3-py38 means each platform gets
# ONE wheel that works on every CPython ≥ 3.8, so we don't
# need a per-Python-version matrix axis.
build-python-wheels:
name: Build Python wheel (${{ matrix.platform }})
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64
platform: linux-x86_64
manylinux: auto
- os: ubuntu-24.04-arm
target: aarch64
platform: linux-aarch64
manylinux: auto
- os: macos-latest
target: aarch64
platform: macos-aarch64
manylinux: ""
- os: windows-latest
target: x64
platform: windows-x86_64
manylinux: ""
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
# 3.10 is the build interpreter; abi3 means the wheel
# itself runs on every CPython ≥ 3.8. Any recent
# Python on the runner would work — 3.10 is just
# well-supported + cached on all runner images.
python-version: '3.10'
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: build-python-wheels-${{ matrix.platform }}
# `maturin-action` builds + packages the wheel. For Linux
# `manylinux: auto` means it runs inside a manylinux2014
# container so glibc gets baked at an old-enough version
# that the wheel runs on any distro shipped since ~2014.
# macOS / Windows don't use manylinux — the wheel tags
# reflect the specific OS version it was built on.
- name: Build wheel
uses: PyO3/maturin-action@v1
with:
working-directory: sdk/python
target: ${{ matrix.target }}
args: --release --out dist
manylinux: ${{ matrix.manylinux }}
- name: Upload wheel artifact
uses: actions/upload-artifact@v4
with:
name: python-wheel-${{ matrix.platform }}
path: sdk/python/dist/*.whl
if-no-files-found: error
retention-days: 1
# ---------------------------------------------------------------------------
# Step 3e: build the Python source distribution.
#
# Uploaded alongside the wheels so users on odd platforms not
# covered by our wheel matrix (FreeBSD, alpine aarch64, etc.)
# can still `pip install sqlrite` and get a source build
# (requires their local Rust toolchain, which is the standard
# fallback path for any PyO3 crate).
build-python-sdist:
name: Build Python sdist
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
working-directory: sdk/python
command: sdist
args: --out dist
- name: Upload sdist artifact
uses: actions/upload-artifact@v4
with:
name: python-sdist
path: sdk/python/dist/*.tar.gz
if-no-files-found: error
retention-days: 1
# ---------------------------------------------------------------------------
# Step 3f: aggregate every wheel + the sdist, upload to PyPI
# via OIDC trusted publishing, and cut the per-product
# `sqlrite-py-v<V>` GitHub Release.
#
# OIDC trusted publishing: no long-lived PyPI API token exists
# anywhere. The `permissions: id-token: write` block below
# lets `pypa/gh-action-pypi-publish` mint a short-lived OIDC
# token, exchange it at PyPI for a one-time upload token, and
# push every wheel. PyPI-side config lives on the `sqlrite`
# project's settings page — see docs/release-secrets.md for
# the one-time trusted-publisher registration.
publish-python:
name: Publish Python wheels to PyPI
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ubuntu-latest
environment: release
permissions:
# OIDC: required for PyPI trusted-publisher token exchange.
id-token: write
# For the softprops/action-gh-release step at the end.
contents: write
steps:
- uses: actions/checkout@v4
# Pull every wheel artifact (one per matrix platform) +
# the sdist into a single `dist/` directory.
- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
pattern: python-wheel-*
path: dist
merge-multiple: true
- name: Download sdist artifact
uses: actions/download-artifact@v4
with:
name: python-sdist
path: dist
- name: List files about to be uploaded
run: ls -la dist/
# Single atomic upload of all wheels + sdist. If any file
# fails to upload, none are published — no partial wave
# on PyPI.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
# Keep `skip-existing: false` so a re-run of this job
# (after a partial-failure scenario) fails loudly rather
# than silently ignoring already-uploaded files.
skip-existing: false
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: sqlrite-py-v${{ needs.detect.outputs.version }}
name: Python v${{ needs.detect.outputs.version }}
body: |
Published to PyPI: https://pypi.org/project/sqlrite/${{ needs.detect.outputs.version }}/
```bash
pip install sqlrite==${{ needs.detect.outputs.version }}
```
```python
import sqlrite
conn = sqlrite.connect(":memory:")
conn.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)")
conn.execute("INSERT INTO users (name) VALUES (?)", ("alice",))
for row in conn.execute("SELECT * FROM users"):
print(row)
```
**Wheels in this release:**
- Linux x86_64 (manylinux2014 or newer)
- Linux aarch64 (manylinux2014 or newer)
- macOS aarch64 (Apple Silicon)
- Windows x86_64
- Source distribution (`.tar.gz`) — builds from source on other platforms via a local Rust toolchain
All wheels are `abi3-py38`, so one wheel per platform works on every CPython ≥ 3.8.
See the umbrella release [v${{ needs.detect.outputs.version }}](../../releases/tag/v${{ needs.detect.outputs.version }}) for the full changelog.
files: dist/*
generate_release_notes: true
# ---------------------------------------------------------------------------
# Step 4: create the umbrella GitHub Release. Runs after all
# publish-* jobs succeed. Uses GitHub's native auto-generated
# release notes so the changelog is "everything between the
# previous v* tag and this one" — curated via .github/release.yml
# config if we add one later.
finalize:
name: Finalize umbrella release
needs:
if: needs.detect.outputs.should_release == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Umbrella GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ needs.detect.outputs.version }}
name: v${{ needs.detect.outputs.version }}
body: |
**SQLRite v${{ needs.detect.outputs.version }}**
Per-product releases in this wave:
- 🦀 [Rust engine](../../releases/tag/sqlrite-v${{ needs.detect.outputs.version }}) → [crates.io](https://crates.io/crates/sqlrite-engine/${{ needs.detect.outputs.version }})
- 🔧 [C FFI](../../releases/tag/sqlrite-ffi-v${{ needs.detect.outputs.version }}) — prebuilt `libsqlrite_c` for Linux x86_64/aarch64, macOS aarch64, Windows x86_64
- 🖥️ [Desktop](../../releases/tag/sqlrite-desktop-v${{ needs.detect.outputs.version }}) — unsigned installers for Linux (AppImage + deb), macOS (dmg aarch64), Windows (msi)
- 🐍 [Python](../../releases/tag/sqlrite-py-v${{ needs.detect.outputs.version }}) → [PyPI](https://pypi.org/project/sqlrite/${{ needs.detect.outputs.version }}/) — abi3-py38 wheels for Linux x86_64/aarch64, macOS aarch64, Windows x86_64 + sdist
_Node.js / WASM / Go SDKs land as their publish jobs come online (Phases 6g–6i)._
---
Auto-generated changelog below ↓
generate_release_notes: true