chore: 添加 GitHub Actions 自动构建 release workflow

- 推送 v* 标签时自动在 macOS 多架构构建 .dmg
- 自动创建 GitHub Release 并附加构建产物
- 升级版本至 v1.1.0

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
电摇小子
2026-06-01 10:20:32 +08:00
co-authored by Claude Opus 4.7
parent d1763757be
commit a6138fd62b
2 changed files with 63 additions and 1 deletions
+62
View File
@@ -0,0 +1,62 @@
name: Build & Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
include:
- platform: macos-arm64
arch: arm64
- platform: macos-x64
arch: x64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: '9'
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Build DMG
run: pnpm run build:mac -- ${{ matrix.platform }}
- name: Upload Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: out/${{ matrix.platform }}/WechatExplorer-${{ env.VERSION }}-${{ matrix.platform }}.dmg
asset_name: WechatExplorer-${{ env.VERSION }}-${{ matrix.platform }}.dmg
asset_content_type: application/x-apple-diskimage
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "wechatexplorer", "name": "wechatexplorer",
"version": "1.0.3", "version": "1.1.0",
"description": "mac 版本获取微信聊天记录, AI群聊总结助手", "description": "mac 版本获取微信聊天记录, AI群聊总结助手",
"keywords": [ "keywords": [
"wechat", "wechat",