Skip to content

Commit

Permalink
chore: 优化编译流程
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Apr 11, 2023
1 parent 293b030 commit 1a2c2e3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 64 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

###

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16

- name: Build go binary
run: sh build.gh
run: sh build.sh

- name: Create github release
uses: softprops/action-gh-release@v1
Expand Down
56 changes: 0 additions & 56 deletions build.gh

This file was deleted.

14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ build() {

####################################################################

releases_url=https://api.github.com/repos/open-tdp/tdp-cloud-ui/releases/latest
download_url=`wget -qO- $releases_url | grep releases/download | cut -f4 -d "\""`

wget -O cloud-ui.tar.gz $download_url
tar xvf cloud-ui.tar.gz --strip-components 2 -C front

####################################################################

build android arm64

build darwin amd64
Expand All @@ -27,3 +35,9 @@ build linux arm64

build windows amd64 .exe
build windows arm64 .exe

####################################################################

for app in `ls build`; do
gzip build/$app
done

0 comments on commit 1a2c2e3

Please sign in to comment.