Skip to content

Commit

Permalink
Added UI to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rykov committed Aug 18, 2021
1 parent de4f09f commit eb8e18c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,24 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Install Node
uses: actions/setup-node@v2
with:
cache-dependency-path: 'ui/yarn.lock'
node-version: '14'
cache: 'yarn'
-
name: Build UI with Ember
working-directory: ./ui
run: |
yarn install
yarn run build
-
name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand All @@ -31,3 +44,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_WITH_UI: true
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ builds:
- arm64
goarm:
- 7
tags: ['{{ if .Env.BUILD_WITH_UI }}withUI{{ else }}noUI{{ end }}']
ignore:
- goos: darwin
goarch: 386
Expand Down

0 comments on commit eb8e18c

Please sign in to comment.