mirror of
https://github.com/orbien-org/orbien.git
synced 2026-09-22 16:01:32 +00:00
604 lines
19 KiB
YAML
604 lines
19 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: "Release version"
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
RUST_VERSION: "1.88"
|
|
|
|
jobs:
|
|
meta:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
version: ${{ steps.ver.outputs.version }}
|
|
steps:
|
|
- id: ver
|
|
run: |
|
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
V="${{ inputs.version }}"
|
|
else
|
|
V="${GITHUB_REF_NAME#v}"
|
|
fi
|
|
if [ -z "$V" ]; then
|
|
echo "version is empty" >&2
|
|
exit 1
|
|
fi
|
|
echo "version=$V" >> "$GITHUB_OUTPUT"
|
|
echo "Release version: $V"
|
|
|
|
build-cli:
|
|
needs: meta
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
target: x86_64-unknown-linux-gnu
|
|
goos: linux
|
|
goarch: amd64
|
|
libc: gnu
|
|
- os: ubuntu-latest
|
|
target: x86_64-unknown-linux-musl
|
|
goos: linux
|
|
goarch: amd64
|
|
libc: musl
|
|
- os: ubuntu-24.04-arm
|
|
target: aarch64-unknown-linux-gnu
|
|
goos: linux
|
|
goarch: arm64
|
|
libc: gnu
|
|
- os: ubuntu-24.04-arm
|
|
target: aarch64-unknown-linux-musl
|
|
goos: linux
|
|
goarch: arm64
|
|
libc: musl
|
|
- os: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
goos: windows
|
|
goarch: amd64
|
|
- os: windows-11-arm
|
|
target: aarch64-pc-windows-msvc
|
|
goos: windows
|
|
goarch: arm64
|
|
- os: macos-15-intel
|
|
target: x86_64-apple-darwin
|
|
goos: darwin
|
|
goarch: amd64
|
|
- os: macos-14
|
|
target: aarch64-apple-darwin
|
|
goos: darwin
|
|
goarch: arm64
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: server-ui/package-lock.json
|
|
|
|
- name: Build server-ui
|
|
working-directory: server-ui
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: Install musl toolchain
|
|
if: endsWith(matrix.target, '-musl')
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y musl-tools
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ env.RUST_VERSION }}
|
|
targets: ${{ matrix.target }}
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: cli-${{ matrix.target }}
|
|
|
|
- name: Build orbien-server + orbien
|
|
shell: bash
|
|
env:
|
|
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER: musl-gcc
|
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: musl-gcc
|
|
run: |
|
|
cargo build --release --locked \
|
|
-p orbien-server -p orbien-client \
|
|
--target ${{ matrix.target }}
|
|
|
|
- name: Package tarballs
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
chmod +x scripts/pack-release.sh
|
|
VERSION="${{ needs.meta.outputs.version }}"
|
|
TARGET="${{ matrix.target }}"
|
|
OUT="dist/release"
|
|
EXT=""
|
|
if [[ "${{ matrix.goos }}" == "windows" ]]; then EXT=".exe"; fi
|
|
BIN_DIR="target/${TARGET}/release"
|
|
LIBC="${{ matrix.libc }}"
|
|
|
|
pack_one() {
|
|
local name="$1"
|
|
local bin="$2"
|
|
local conf="$3"
|
|
if [[ -n "$LIBC" ]]; then
|
|
./scripts/pack-release.sh \
|
|
--name "$name" \
|
|
--version "$VERSION" \
|
|
--os "${{ matrix.goos }}" \
|
|
--arch "${{ matrix.goarch }}" \
|
|
--libc "$LIBC" \
|
|
--outdir "$OUT" \
|
|
--bin "$bin" \
|
|
--config "$conf"
|
|
else
|
|
./scripts/pack-release.sh \
|
|
--name "$name" \
|
|
--version "$VERSION" \
|
|
--os "${{ matrix.goos }}" \
|
|
--arch "${{ matrix.goarch }}" \
|
|
--outdir "$OUT" \
|
|
--bin "$bin" \
|
|
--config "$conf"
|
|
fi
|
|
}
|
|
|
|
pack_one orbien-server \
|
|
"${BIN_DIR}/orbien-server${EXT}" \
|
|
pack/conf/orbien-server.toml
|
|
pack_one orbien \
|
|
"${BIN_DIR}/orbien${EXT}" \
|
|
pack/conf/orbien.toml
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: cli-${{ matrix.target }}
|
|
path: dist/release/*.tar.gz
|
|
if-no-files-found: error
|
|
|
|
build-cli-freebsd:
|
|
needs: meta
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: server-ui/package-lock.json
|
|
|
|
- name: Build server-ui
|
|
working-directory: server-ui
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: Build & pack CLI on FreeBSD
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
release: "14"
|
|
arch: x86_64
|
|
mem: 8192
|
|
usesh: true
|
|
sync: rsync
|
|
copyback: true
|
|
envs: "RUST_VERSION VERSION"
|
|
prepare: |
|
|
set -e
|
|
pkg install -y bash curl git gmake pkgconf ca_root_nss
|
|
export PATH="$HOME/.cargo/bin:/usr/local/bin:$PATH"
|
|
if [ ! -x "$HOME/.cargo/bin/cargo" ]; then
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
|
|
| sh -s -- -y --profile minimal --default-toolchain "${RUST_VERSION}"
|
|
fi
|
|
. "$HOME/.cargo/env"
|
|
rustup default "${RUST_VERSION}"
|
|
rustup show
|
|
rustc --version
|
|
cargo --version
|
|
command -v bash
|
|
run: |
|
|
set -ex
|
|
export PATH="$HOME/.cargo/bin:/usr/local/bin:$PATH"
|
|
if [ -f "$HOME/.cargo/env" ]; then
|
|
. "$HOME/.cargo/env"
|
|
fi
|
|
echo "VERSION=${VERSION:-}"
|
|
echo "RUST_VERSION=${RUST_VERSION:-}"
|
|
command -v cargo
|
|
command -v bash
|
|
rustc --version
|
|
cargo --version
|
|
|
|
cargo build --release --locked -p orbien-server -p orbien-client
|
|
./target/release/orbien-server --help >/dev/null
|
|
./target/release/orbien --help >/dev/null
|
|
|
|
OUT="dist/release"
|
|
mkdir -p "$OUT"
|
|
bash scripts/pack-release.sh \
|
|
--name orbien-server \
|
|
--version "$VERSION" \
|
|
--os freebsd \
|
|
--arch amd64 \
|
|
--outdir "$OUT" \
|
|
--bin target/release/orbien-server \
|
|
--config pack/conf/orbien-server.toml
|
|
bash scripts/pack-release.sh \
|
|
--name orbien \
|
|
--version "$VERSION" \
|
|
--os freebsd \
|
|
--arch amd64 \
|
|
--outdir "$OUT" \
|
|
--bin target/release/orbien \
|
|
--config pack/conf/orbien.toml
|
|
ls -lh "$OUT"
|
|
env:
|
|
RUST_VERSION: ${{ env.RUST_VERSION }}
|
|
VERSION: ${{ needs.meta.outputs.version }}
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: cli-freebsd-amd64
|
|
path: dist/release/*.tar.gz
|
|
if-no-files-found: error
|
|
|
|
build-desktop:
|
|
needs: meta
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
target: x86_64-unknown-linux-gnu
|
|
goos: linux
|
|
goarch: amd64
|
|
- os: ubuntu-24.04-arm
|
|
target: aarch64-unknown-linux-gnu
|
|
goos: linux
|
|
goarch: arm64
|
|
- os: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
goos: windows
|
|
goarch: amd64
|
|
- os: windows-11-arm
|
|
target: aarch64-pc-windows-msvc
|
|
goos: windows
|
|
goarch: arm64
|
|
- os: macos-15-intel
|
|
target: x86_64-apple-darwin
|
|
goos: darwin
|
|
goarch: amd64
|
|
- os: macos-14
|
|
target: aarch64-apple-darwin
|
|
goos: darwin
|
|
goarch: arm64
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: desktop/package-lock.json
|
|
|
|
- name: Install Linux Tauri dependencies
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
libwebkit2gtk-4.1-dev libayatana-appindicator3-dev \
|
|
librsvg2-dev patchelf libssl-dev \
|
|
fakeroot
|
|
|
|
- name: Install WiX
|
|
if: runner.os == 'Windows'
|
|
shell: bash
|
|
run: |
|
|
choco install wixtoolset -y --no-progress
|
|
echo "C:/Program Files (x86)/WiX Toolset v3.14/bin" >> "$GITHUB_PATH"
|
|
echo "C:/Program Files (x86)/WiX Toolset v3.11/bin" >> "$GITHUB_PATH"
|
|
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ env.RUST_VERSION }}
|
|
targets: ${{ matrix.target }}
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: |
|
|
. -> target
|
|
desktop/src-tauri -> target
|
|
key: desktop-${{ matrix.target }}
|
|
|
|
- name: Install npm deps
|
|
working-directory: desktop
|
|
run: npm ci
|
|
|
|
- name: Build orbien CLI sidecar
|
|
shell: bash
|
|
env:
|
|
CI: "true"
|
|
run: |
|
|
set -euo pipefail
|
|
chmod +x scripts/prepare-desktop-sidecar.sh
|
|
TARGET="${{ matrix.target }}"
|
|
./scripts/prepare-desktop-sidecar.sh "$TARGET"
|
|
EXT=""
|
|
case "$TARGET" in *windows*) EXT=".exe" ;; esac
|
|
SIDE="desktop/src-tauri/binaries/orbien-${TARGET}${EXT}"
|
|
if [[ ! -f "$SIDE" ]]; then
|
|
echo "missing sidecar for Tauri externalBin: $SIDE" >&2
|
|
ls -la desktop/src-tauri/binaries/ || true
|
|
exit 1
|
|
fi
|
|
ls -lh "$SIDE"
|
|
|
|
- name: Sync desktop version
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
export VERSION="${{ needs.meta.outputs.version }}"
|
|
BUNDLE_VERSION="$(node <<'EOF'
|
|
const v = process.env.VERSION || "";
|
|
const m = v.match(/^(\d+\.\d+\.\d+)(?:-([0-9A-Za-z.-]+))?$/);
|
|
if (!m) { console.log(v); process.exit(0); }
|
|
const core = m[1];
|
|
const pre = m[2];
|
|
if (!pre) { console.log(core); process.exit(0); }
|
|
if (/^\d+$/.test(pre)) {
|
|
const n = Number(pre);
|
|
console.log(n > 65535 ? core : `${core}-${pre}`);
|
|
process.exit(0);
|
|
}
|
|
const num = pre.match(/(\d+)$/);
|
|
if (num) {
|
|
const n = Number(num[1]);
|
|
console.log(n > 65535 ? core : `${core}-${n}`);
|
|
process.exit(0);
|
|
}
|
|
console.log(core);
|
|
EOF
|
|
)"
|
|
export BUNDLE_VERSION
|
|
echo "release tag version: ${VERSION}"
|
|
echo "bundle version (msi-safe): ${BUNDLE_VERSION}"
|
|
|
|
node <<'EOF'
|
|
const fs = require("fs");
|
|
for (const p of [
|
|
"desktop/src-tauri/tauri.conf.json",
|
|
"desktop/package.json",
|
|
]) {
|
|
const j = JSON.parse(fs.readFileSync(p, "utf8"));
|
|
j.version = process.env.BUNDLE_VERSION;
|
|
fs.writeFileSync(p, JSON.stringify(j, null, 2) + "\n");
|
|
}
|
|
EOF
|
|
sed -i.bak -E "s/^version = \".*\"/version = \"${BUNDLE_VERSION}\"/" desktop/src-tauri/Cargo.toml
|
|
rm -f desktop/src-tauri/Cargo.toml.bak
|
|
|
|
- name: Configure Apple code signing
|
|
if: runner.os == 'macOS'
|
|
env:
|
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
|
run: |
|
|
set -euo pipefail
|
|
if [ -z "${APPLE_CERTIFICATE}" ]; then
|
|
echo "APPLE_CERTIFICATE not configured — ad-hoc signing (signingIdentity=-)"
|
|
exit 0
|
|
fi
|
|
|
|
CERT_PATH="$RUNNER_TEMP/apple-cert.p12"
|
|
if ! echo "$APPLE_CERTIFICATE" | base64 --decode > "$CERT_PATH" 2>/dev/null; then
|
|
echo "::error::APPLE_CERTIFICATE is not valid base64. Export with: base64 -i DeveloperID.p12 | pbcopy"
|
|
exit 1
|
|
fi
|
|
if [[ ! -s "$CERT_PATH" ]]; then
|
|
echo "::error::APPLE_CERTIFICATE decoded to an empty file"
|
|
exit 1
|
|
fi
|
|
echo "APPLE_CERTIFICATE decoded OK ($(wc -c < "$CERT_PATH") bytes)"
|
|
rm -f "$CERT_PATH"
|
|
|
|
{
|
|
echo "APPLE_CERTIFICATE<<ORB_CERT_EOF"
|
|
printf '%s\n' "$APPLE_CERTIFICATE"
|
|
echo "ORB_CERT_EOF"
|
|
echo "APPLE_CERTIFICATE_PASSWORD<<ORB_PASS_EOF"
|
|
printf '%s\n' "${APPLE_CERTIFICATE_PASSWORD:-}"
|
|
echo "ORB_PASS_EOF"
|
|
} >> "$GITHUB_ENV"
|
|
|
|
if [ -n "${APPLE_SIGNING_IDENTITY:-}" ]; then
|
|
{
|
|
echo "APPLE_SIGNING_IDENTITY<<ORB_ID_EOF"
|
|
printf '%s\n' "$APPLE_SIGNING_IDENTITY"
|
|
echo "ORB_ID_EOF"
|
|
} >> "$GITHUB_ENV"
|
|
fi
|
|
|
|
node <<'EOF'
|
|
const fs = require("fs");
|
|
const p = "desktop/src-tauri/tauri.conf.json";
|
|
const j = JSON.parse(fs.readFileSync(p, "utf8"));
|
|
if (j.bundle?.macOS?.signingIdentity === "-") {
|
|
delete j.bundle.macOS.signingIdentity;
|
|
fs.writeFileSync(p, JSON.stringify(j, null, 2) + "\n");
|
|
console.log("cleared ad-hoc signingIdentity so Developer ID can be inferred");
|
|
}
|
|
EOF
|
|
|
|
if [ -n "${APPLE_ID:-}" ] && [ -n "${APPLE_PASSWORD:-}" ] && [ -n "${APPLE_TEAM_ID:-}" ]; then
|
|
{
|
|
echo "APPLE_ID<<ORB_AID_EOF"
|
|
printf '%s\n' "$APPLE_ID"
|
|
echo "ORB_AID_EOF"
|
|
echo "APPLE_PASSWORD<<ORB_APW_EOF"
|
|
printf '%s\n' "$APPLE_PASSWORD"
|
|
echo "ORB_APW_EOF"
|
|
echo "APPLE_TEAM_ID=$APPLE_TEAM_ID"
|
|
} >> "$GITHUB_ENV"
|
|
echo "Notarization credentials exported"
|
|
else
|
|
echo "Developer ID cert exported; notarization secrets incomplete — skip notarization"
|
|
fi
|
|
|
|
- name: Build Tauri installers
|
|
working-directory: desktop
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
if [[ "${{ runner.os }}" == "macOS" ]]; then
|
|
if [ -n "${APPLE_CERTIFICATE:-}" ]; then
|
|
echo "macOS signing: Developer ID (APPLE_CERTIFICATE present)"
|
|
else
|
|
echo "macOS signing: ad-hoc (tauri.conf.json signingIdentity=-)"
|
|
fi
|
|
fi
|
|
npm run tauri -- build --target ${{ matrix.target }}
|
|
|
|
- name: Verify macOS app signature
|
|
if: runner.os == 'macOS'
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
TARGET="${{ matrix.target }}"
|
|
DMG_DIR="desktop/src-tauri/target/${TARGET}/release/bundle/dmg"
|
|
DMG="$(find "$DMG_DIR" -type f -name '*.dmg' | head -n 1 || true)"
|
|
if [[ -z "$DMG" || ! -f "$DMG" ]]; then
|
|
echo "No .dmg under $DMG_DIR" >&2
|
|
find "desktop/src-tauri/target/${TARGET}/release/bundle" -maxdepth 3 2>/dev/null || true
|
|
exit 1
|
|
fi
|
|
MOUNT="$(mktemp -d /tmp/orbien-dmg-XXXX)"
|
|
cleanup() { hdiutil detach "$MOUNT" -quiet 2>/dev/null || true; rm -rf "$MOUNT"; }
|
|
trap cleanup EXIT
|
|
hdiutil attach "$DMG" -mountpoint "$MOUNT" -nobrowse -readonly -quiet
|
|
APP="$(find "$MOUNT" -maxdepth 2 -name '*.app' -type d | head -n 1 || true)"
|
|
if [[ -z "$APP" || ! -d "$APP" ]]; then
|
|
echo "No .app inside DMG: $DMG" >&2
|
|
ls -la "$MOUNT" >&2 || true
|
|
exit 1
|
|
fi
|
|
echo "Verifying: $APP (from $DMG)"
|
|
codesign --verify --deep --strict --verbose=2 "$APP"
|
|
codesign -dv --verbose=4 "$APP" 2>&1 | tee /tmp/orbien-codesign.txt
|
|
if grep -q 'Signature=adhoc\|Authority=Developer ID Application' /tmp/orbien-codesign.txt; then
|
|
echo "macOS code signature OK"
|
|
else
|
|
echo "WARNING: unexpected signature; Gatekeeper may report the app as damaged" >&2
|
|
cat /tmp/orbien-codesign.txt >&2
|
|
fi
|
|
SIDE="$(find "$APP/Contents/MacOS" -type f \( -name 'orbien' -o -name 'orbien-*' \) ! -name 'orbien-desktop' | head -n 1 || true)"
|
|
if [[ -z "$SIDE" ]]; then
|
|
SIDE="$(find "$APP/Contents/MacOS" -type f -name 'orbien' | head -n 1 || true)"
|
|
fi
|
|
if [[ -z "$SIDE" ]]; then
|
|
echo "missing orbien sidecar inside app bundle" >&2
|
|
ls -la "$APP/Contents/MacOS" >&2 || true
|
|
exit 1
|
|
fi
|
|
ls -lh "$APP/Contents/MacOS/"
|
|
file "$SIDE"
|
|
|
|
- name: Collect desktop installers
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
VERSION="${{ needs.meta.outputs.version }}"
|
|
TARGET="${{ matrix.target }}"
|
|
GOOS="${{ matrix.goos }}"
|
|
GOARCH="${{ matrix.goarch }}"
|
|
OUT="dist/release"
|
|
BUNDLE="desktop/src-tauri/target/${TARGET}/release/bundle"
|
|
mkdir -p "$OUT"
|
|
|
|
echo "Bundle tree:"
|
|
find "$BUNDLE" -type f 2>/dev/null | sort || true
|
|
|
|
case "$GOOS" in
|
|
darwin) SUBDIR="dmg"; EXT="dmg" ;;
|
|
windows) SUBDIR="msi"; EXT="msi" ;;
|
|
linux) SUBDIR="deb"; EXT="deb" ;;
|
|
*)
|
|
echo "unsupported goos: $GOOS" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
SRC="$(find "$BUNDLE/$SUBDIR" -type f -name "*.${EXT}" 2>/dev/null | head -n 1 || true)"
|
|
if [[ -z "$SRC" || ! -f "$SRC" ]]; then
|
|
echo "No .${EXT} installer found under ${BUNDLE}/${SUBDIR}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
DEST="${OUT}/orbien-desktop_${VERSION}_${GOOS}_${GOARCH}.${EXT}"
|
|
cp "$SRC" "$DEST"
|
|
ls -lh "$DEST"
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: desktop-${{ matrix.goos }}-${{ matrix.goarch }}
|
|
path: |
|
|
dist/release/*.dmg
|
|
dist/release/*.msi
|
|
dist/release/*.deb
|
|
if-no-files-found: error
|
|
|
|
publish:
|
|
needs: [meta, build-cli, build-cli-freebsd, build-desktop]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
path: artifacts
|
|
pattern: "*"
|
|
merge-multiple: true
|
|
|
|
- name: List artifacts
|
|
run: find artifacts -type f | sort
|
|
|
|
- name: Create / update GitHub Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: v${{ needs.meta.outputs.version }}
|
|
name: v${{ needs.meta.outputs.version }}
|
|
draft: false
|
|
prerelease: ${{ contains(needs.meta.outputs.version, '-') }}
|
|
generate_release_notes: true
|
|
files: |
|
|
artifacts/*.tar.gz
|
|
artifacts/*.dmg
|
|
artifacts/*.msi
|
|
artifacts/*.deb
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|