-
Notifications
You must be signed in to change notification settings - Fork 120
39 lines (37 loc) · 970 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: GoReleaser
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: "18.14.1"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: build public files
run: |
npm install -g pnpm
echo "清空原有数据"
rm -rf ./public
mkdir -p public
echo '构建用户页面'
cd ui && CI=false pnpm install && CI=false pnpm build && cd ..
cp -r ui/build/* public/
echo '构建前端数据完成'
ls public/static
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: v1.18.2
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}