Skip to content

Commit 871269a

Browse files
committed
chore: bump version to v1.3.1
1 parent cae015f commit 871269a

16 files changed

Lines changed: 1993 additions & 148 deletions
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
include:
15+
- os: macos-latest
16+
platform: mac
17+
arch: arm64
18+
- os: windows-latest
19+
platform: win
20+
arch: x64
21+
- os: ubuntu-latest
22+
platform: linux
23+
arch: x64
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '20'
33+
cache: 'npm'
34+
35+
- name: Install dependencies
36+
run: npm ci
37+
38+
- name: Build and publish
39+
env:
40+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: npm run publish-${{ matrix.platform }}
42+
43+
- name: Upload artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: ${{ matrix.platform }}-${{ matrix.arch }}
47+
path: dist/*
48+
49+
create-release:
50+
needs: build
51+
runs-on: ubuntu-latest
52+
permissions:
53+
contents: write
54+
55+
steps:
56+
- name: Checkout code
57+
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
60+
61+
- name: Download all artifacts
62+
uses: actions/download-artifact@v4
63+
with:
64+
path: dist
65+
66+
- name: Get tag message
67+
id: tag_message
68+
run: |
69+
TAG_MESSAGE=$(git tag -l --format='%(contents)' ${{ github.ref_name }})
70+
echo "TAG_MESSAGE<<EOF" >> $GITHUB_OUTPUT
71+
echo "$TAG_MESSAGE" >> $GITHUB_OUTPUT
72+
echo "EOF" >> $GITHUB_OUTPUT
73+
74+
- name: Create Release
75+
uses: softprops/action-gh-release@v2
76+
with:
77+
body: |
78+
${{ steps.tag_message.outputs.TAG_MESSAGE }}
79+
80+
## Downloads
81+
82+
- 🍎 **macOS**: `KHM-Tools-*-mac-arm64.dmg`
83+
- 🪟 **Windows**: `KHM-Tools-*-win-x64.exe`
84+
- 🐧 **Linux**: `KHM-Tools-*-linux.AppImage`
85+
files: |
86+
dist/**/*.dmg
87+
dist/**/*.zip
88+
dist/**/*.exe
89+
dist/**/*.AppImage
90+
dist/**/*.deb
91+
draft: false
92+
prerelease: false
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ Thumbs.db
1616

1717
# Editor directories and files
1818
.idea/
19-
.vscode/
19+
.vscode/
20+
21+
# Claude
22+
.claude/

MIGRATION_NOTICE.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)