-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (34 loc) · 811 Bytes
/
go.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
name: Go
on:
release:
types: [published]
branches: [ master ]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.18.7
id: go
- name: Install NPM
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Check out code
uses: actions/checkout@v3
- name: Setup NPM modules
run: npm --prefix frontend install
- name: Get Go dependencies
run: go get -v -t -d ./...
- name: Generate files
run: ./generate.sh
- name: Build
run: ./build.sh
- name: Upload to release
uses: AButler/upload-release-assets@v2.0
with:
files: 'build/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}