-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.64 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release
on:
push:
tags:
- 'v*' # 当推送 v 开头的标签时触发,如 v1.1.0
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # 获取完整的 git 历史用于生成变更日志
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.get_version.outputs.VERSION }}
path: ./CHANGELOG.md
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: AIDO ${{ steps.get_version.outputs.VERSION }}
body: |
# AIDO ${{ steps.get_version.outputs.VERSION }}
${{ steps.changelog_reader.outputs.changes }}
## 安装方法
```bash
# MacOS/Linux
curl -fsSL https://raw.githubusercontent.com/zyjarge/aido/master/install.sh | bash
# Windows (在管理员权限的 PowerShell 中运行)
Set-ExecutionPolicy RemoteSigned -Scope Process
iwr -useb https://raw.githubusercontent.com/zyjarge/aido/master/install.ps1 | iex
```
## 文档
详细使用说明请查看 [README.md](https://github.com/zyjarge/aido/blob/master/README.md)
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}