diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index c4c97c5..a9fbbe8 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -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 @@ -31,3 +44,4 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BUILD_WITH_UI: true diff --git a/.goreleaser.yml b/.goreleaser.yml index 71d4859..0aa22f4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,6 +13,7 @@ builds: - arm64 goarm: - 7 + tags: ['{{ if .Env.BUILD_WITH_UI }}withUI{{ else }}noUI{{ end }}'] ignore: - goos: darwin goarch: 386