Skip to content

Commit eb8e18c

Browse files
committed
Added UI to release workflow
1 parent de4f09f commit eb8e18c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/goreleaser.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,24 @@ jobs:
1717
uses: actions/checkout@v2
1818
with:
1919
fetch-depth: 0
20+
-
21+
name: Install Node
22+
uses: actions/setup-node@v2
23+
with:
24+
cache-dependency-path: 'ui/yarn.lock'
25+
node-version: '14'
26+
cache: 'yarn'
27+
-
28+
name: Build UI with Ember
29+
working-directory: ./ui
30+
run: |
31+
yarn install
32+
yarn run build
2033
-
2134
name: Install Go
2235
uses: actions/setup-go@v2
2336
with:
24-
go-version: 1.16
37+
go-version: 1.17
2538
-
2639
name: Run GoReleaser
2740
uses: goreleaser/goreleaser-action@v2
@@ -31,3 +44,4 @@ jobs:
3144
args: release --rm-dist
3245
env:
3346
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
BUILD_WITH_UI: true

.goreleaser.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ builds:
1313
- arm64
1414
goarm:
1515
- 7
16+
tags: ['{{ if .Env.BUILD_WITH_UI }}withUI{{ else }}noUI{{ end }}']
1617
ignore:
1718
- goos: darwin
1819
goarch: 386

0 commit comments

Comments
 (0)