feat: 添加发布工作流,支持自动构建和发布主题版本
Release / release (push) Failing after 7m33s

This commit is contained in:
chuan
2026-05-16 20:31:52 +08:00
Unverified
parent 3f47d02395
commit 1d293ac201
6 changed files with 223 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Release
on:
push:
branches:
- "**"
paths-ignore:
- "docs/**"
- "**/*.md"
workflow_dispatch:
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build and verify
run: bun run test
- name: Package release
run: bun run release:package
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: bun scripts/publish-release.ts