Skip to content

Commit 46b4663

Browse files
committed
ci: use sematic-release
1 parent cad81ef commit 46b4663

File tree

5 files changed

+518
-44
lines changed

5 files changed

+518
-44
lines changed

.github/workflows/build.yml

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

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Release winguake
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
build:
15+
runs-on: windows-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0 # semantic-release 需要完整的 git 历史
22+
23+
# If semantic-release decides to release, it will build package by running .prepare.ps1 in plugin @semantic-release/exec.
24+
- name: Semantic Release
25+
uses: cycjimmy/semantic-release-action@v4
26+
with:
27+
# semantic-release 需额外安装的插件
28+
extra_plugins: |
29+
@semantic-release/changelog
30+
@semantic-release/git
31+
@semantic-release/exec
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
tmp*
2-
.vscode
2+
.vscode/
3+
.assets*
4+
bin/

0 commit comments

Comments
 (0)