添加 release.sh 脚本

This commit is contained in:
bjdgyc
2024-01-29 14:30:15 +08:00
parent 41278f722d
commit f47fbd0252
4 changed files with 84 additions and 52 deletions

45
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,45 @@
name: release
on:
workflow_dispatch:
push:
tags:
- "v0.*"
jobs:
Build:
name: build-binary
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Hello world
run: |
uname -a
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache-dependency-path: 'server/go.sum'
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: 'web/yarn.lock'
- # https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build
run: |
mkdir server/ui
touch server/ui/index.html
#sudo apt-get install -y -q gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
bash Z:\goweb\anylink\release.sh
# Docker:
# name: build-docker