Refactor CI and Release workflows into dedicated distinct pipelines
🧪 CI / 🧪 Test & Type-Check (push) Has been cancelled
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled

This commit is contained in:
gitea committed 2026-08-26 16:12:44 +08:00
1 parent 7572e56018
commit d5eae55a40
2 files changed
+35 -13

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
name: 🧪 CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test-and-check:
name: 🧪 Test & Type-Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Type-check
run: bun run check
- name: Test
run: bun test
@@ -1,22 +1,17 @@
name: Binaries
name: 🚀 Release
on:
push:
branches:
- master
tags:
- "v*"
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-release:
name: Build & Release Binaries
build-and-publish:
name: 🚀 Build & Publish Multi-Platform Binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -37,13 +32,11 @@ jobs:
run: bun test
- name: Compile multi-target binaries
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
run: |
mkdir -p dist/bin
node scripts/build-binary.mjs --all
- name: Package release archives
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
run: |
sudo apt-get update && sudo apt-get install -y zip
cd dist/bin
@@ -54,7 +47,6 @@ jobs:
zip -q seal-home-windows-x64.zip seal-home-windows-x64.exe
- name: Publish GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ github.token }}
run: |
@@ -67,7 +59,6 @@ jobs:
gh release upload "${GITHUB_REF_NAME}" dist/bin/seal-home-* --repo "${GITHUB_REPOSITORY}" --clobber
- name: Publish Gitea Release
if: startsWith(github.ref, 'refs/tags/v')
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_HOST: "https://git.ying-qing.cn"
@@ -109,4 +100,3 @@ jobs:
echo " Upload response: $(echo "$RESP" | tail -n 1)"
done
echo "✓ Successfully published release assets to Gitea!"