feat: use go:embed from go1.16

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2021-02-20 22:19:09 +08:00
parent 98c09a9ada
commit d3c4e05041
8 changed files with 57 additions and 41 deletions

View File

@@ -13,6 +13,15 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: 1.16.0
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: frontend
run: |
cd frontend
npm install
npm run build
cd ..
- name: build
env:
target: ${{ matrix.target }}

View File

@@ -37,10 +37,17 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: 1.16.0
- uses: actions/setup-node@v2
with:
node-version: '12'
- id: release-asset
env:
target: ${{ matrix.target }}
run: |
cd frontend
npm install
npm run build
cd ..
version=${{ steps.get-version.outputs.version-without-v }}
os=$(echo $target | awk -F. '{print $1}')
arch=$(echo $target | awk -F. '{print $2}')