# Release {{name}} as a node-app .deb on every published GitHub Release.
#
# Delegates to the canonical reusable workflow in econ-v1/node, which resolves
# the version from the release tag, syncs manifest.json + Cargo.toml to it,
# then audits, builds, packages, GPG-signs, and uploads the .deb.
#
# Standalone apps ship their own binary + systemd unit, so unlike `bun` apps
# they are architecture-specific and need one .deb per arch. The reusable
# workflow installs `cross` for the non-host arch; `node-app package` stages
# the binary, the systemd unit and manifest.json, so this repo needs no
# [package.metadata.deb] block of its own.
#
# Only the arm64 leg dispatches the apt aggregator, so the indexer runs once
# per release rather than once per arch.
#
# See docs/development/NODE_APP_RELEASE_WORKFLOW.md.
name: release
on:
release:
types:
jobs:
release:
strategy:
fail-fast: false
matrix:
arch:
uses: econ-v1/node/.github/workflows/node-app-release.yml@main
with:
arch: ${{ matrix.arch }}
dispatch_aggregator: ${{ matrix.arch == 'arm64' }}
secrets: inherit