49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
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."
|