fix: 更新 ALAPI_ID 字段为 ALAPI_API_ID,修正文档描述以明确接口ID的使用说明 #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Build and Upload | |
on: | |
push: | |
tags: | |
- 'v*' # 匹配以 v 开头的 tag,例如 v1.0.0 | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.24.1' | |
cache: true | |
- name: Make build.sh executable | |
run: chmod +x build.sh | |
- name: Build | |
run: ./build.sh | |
env: | |
GO111MODULE: on | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
build/*.exe | |
build/mcp-alapi-cn-*-linux-* | |
build/mcp-alapi-cn-*-darwin-* | |
generate_release_notes: true | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |