-
Notifications
You must be signed in to change notification settings - Fork 28
54 lines (46 loc) · 1.16 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
51
52
53
54
name: Releaser
on:
pull_request:
paths-ignore:
- "**.md"
tags:
- "v*"
push:
paths-ignore:
- "**.md"
tags:
- "v*"
permissions:
contents: write
jobs:
riotpot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: latest
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true
# The UI is not built with the code to reduce the size of the bundle.
# In addition, the Docker image builds the UI every time.
# Therefore, we need to build it whenever we create a new release
- name: Build UI
run: npm --prefix=./ui ci && npm --prefix=./ui run build
- name: Build Plugins
run: make build-plugins
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}