-
Notifications
You must be signed in to change notification settings - Fork 272
50 lines (43 loc) · 1.04 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
name: release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
strategy:
matrix:
platform: [ubuntu-latest]
go-version: ["1.20"]
name: Release
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Node.js 19.x
uses: actions/setup-node@v3
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
node-version: 19.x
registry-url: "https://registry.npmjs.org"
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install --ignore-optional
- name: Build
run: |
yarn run build:client
cp -r dist backend/dist
cd backend
bash build.sh
- name: Upload assets
uses: softprops/action-gh-release@v1
with:
files: backend/build/compress/*