fix: Build site in release process (#785)

The static site wasn't building prior, so authenticating via CLI was broken!
This commit is contained in:
Kyle Carberry
2022-03-31 18:44:19 +00:00
committed by GitHub
parent 50f2fcae05
commit b2261030e6
2 changed files with 43 additions and 0 deletions
+11
View File
@@ -323,6 +323,17 @@ jobs:
with:
install-only: true
- name: Cache Node
id: cache-node
uses: actions/cache@v3
with:
path: |
**/node_modules
.eslintcache
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
js-${{ runner.os }}-
- name: Build Release
run: make release
+32
View File
@@ -14,6 +14,38 @@ jobs:
with:
go-version: "~1.18"
- name: Echo Go Cache Paths
id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Go Build Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-release-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-release-go-mod-${{ hashFiles('**/go.sum') }}
- name: Cache Node
id: cache-node
uses: actions/cache@v3
with:
path: |
**/node_modules
.eslintcache
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
js-${{ runner.os }}-
- name: Build Site
run: make site/out
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.9.1
with: