feat(release): add portable packaging and release workflow

This commit is contained in:
Andrew Emelyaneko
2026-10-31 23:40:20 +03:00
parent 0e297dc523
commit f6430cf3ae
5 changed files with 222 additions and 1 deletions
+48
View File
@@ -0,0 +1,48 @@
name: Release Candidates
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
version:
description: "Package version (without leading v)"
required: true
default: "0.1.0"
jobs:
linux-package:
runs-on: docker
steps:
- name: Checkout code
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
run: |
git clone "http://${CI_TOKEN}@10.8.0.52:8080/andrew/plagin_tokens.git" src
cd src
- name: Setup Bun
run: |
bun --version || true
- name: Verify
working-directory: src/plagin_tokens
run: |
bun install
bun test
bun run typecheck
- name: Build source, Linux and source packages
working-directory: src/plagin_tokens
run: |
VERSION=${{ github.event.inputs.version || '0.1.0' }} ./release/package.sh
# macOS package needs a self-hosted macOS runner with label "macos".
macos-package:
if: false
runs-on: [macos, self-hosted]
steps:
- name: Build DMG
run: |
echo "Enable when a self-hosted macOS runner is available."