Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2219 from GuessWhoSamFoo/goreleaser-embedded-flag
Browse files Browse the repository at this point in the history
Add embedded flag to .goreleaser.yml
  • Loading branch information
wwitzel3 authored Mar 25, 2021
2 parents a4645bf + e4e5198 commit 5f9ab36
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
cd web
npm ci --prefer-offline --no-audit
npm run-script build
- uses: actions/upload-artifact@v2
with:
name: bundle
path: web/dist
shell: bash
- name: Build electron binary
env:
Expand Down Expand Up @@ -49,6 +53,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/download-artifact@v2
with:
name: bundle
path: web/dist
- name: Run goreleaser
run: |
git fetch --tags
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/preflight-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ jobs:
npm ci --prefer-offline --no-audit
npm run-script build
shell: bash
- uses: actions/upload-artifact@v2
with:
name: bundle
path: web/dist
- name: Go tools
env:
GOFLAGS: -mod=vendor
Expand Down Expand Up @@ -133,6 +137,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/download-artifact@v2
with:
name: bundle
path: web/dist
- name: Run GoReleaser
run: |
goreleaser --skip-publish
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ builds:
- linux
goarch:
- amd64
flags:
- -tags=embedded
ldflags: -X "main.buildTime={{.Date}}" -X "main.gitCommit={{.Commit}}"
nfpms:
-
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ builds:
- amd64
- arm
- arm64
flags:
- -tags=embedded
ldflags: -X "main.buildTime={{.Date}}" -X "main.gitCommit={{.Commit}}" -X "main.version={{.Version}}"
nfpms:
-
Expand Down

0 comments on commit 5f9ab36

Please sign in to comment.