Skip to content

Update installation scripts and improve documentation for MacOS/Linux… #1

Update installation scripts and improve documentation for MacOS/Linux…

Update installation scripts and improve documentation for MacOS/Linux… #1

Workflow file for this run

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 }}