ci: update ci #3
Workflow file for this run
This file contains 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: 1- 自动发布版本 | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
name: 打包发布 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "检查安装go环境" | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: 构建发布包 | |
run: | | |
sudo apt update -y | |
sudo apt install jq cloc protobuf-compiler \ | |
gcc-mingw-w64-x86-64 \ | |
gcc-arm-linux-gnueabi \ | |
gcc-mips-linux-gnu \ | |
gcc-aarch64-linux-gnu -y | |
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
cloc ./ | |
chmod 755 ./gen_info.sh | |
chmod +x ./gen_info.sh | |
chmod 755 ./gen_proto.sh | |
chmod +x ./gen_proto.sh | |
chmod 755 ./release_pkg.sh | |
chmod +x ./release_pkg.sh | |
make | |
bash ./release_pkg.sh | |
# ------------------------------ | |
- uses: ncipollo/release-action@v1 | |
name: "上传文件" |