Skip to content

Commit

Permalink
feat: include assets in build
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Oct 30, 2024
1 parent eba591d commit 78fdec2
Showing 4 changed files with 33 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/goreleaser-for-darwin.yaml
Original file line number Diff line number Diff line change
@@ -49,6 +49,14 @@ builds:
- arm64
snapshot:
name_template: "{{ incpatch .Version }}-next"
archives:
- builds:
- sour
files:
- LICENSE*
- README*
- src: "dist/assets/*"
dest: "assets"
brews:
- skip_upload: true
homepage: "https://github.com/cfoust/sour"
8 changes: 8 additions & 0 deletions .github/goreleaser-for-linux.yaml
Original file line number Diff line number Diff line change
@@ -53,6 +53,14 @@ builds:
- CC=gcc
snapshot:
name_template: "{{ incpatch .Version }}-next"
archives:
- builds:
- sour
files:
- LICENSE*
- README*
- src: "dist/assets/*"
dest: "assets"
brews:
- skip_upload: true
repository:
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@ jobs:
include-hidden-files: true

build-linux-binary:
needs: [build-client, build-game]
needs: [build-assets, build-client, build-game]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -138,6 +138,12 @@ jobs:
name: game
path: ./cmd/server/static/site/game

- name: Download assets
uses: actions/download-artifact@v3
with:
name: assets
path: ./dist/assets

- uses: actions/setup-go@v4
with:
go-version: 1.23
@@ -156,4 +162,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: sour-linux
path: sour
path: dist/sour*
9 changes: 9 additions & 0 deletions pkg/version/module.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package version

// These should be set via go build -ldflags -X 'xxxx'.
var (
Version = "development"
GoVersion = "1.21"
GitCommit = "unknown"
BuildTime = "1979-01-09T16:09:53+00:00"
)

0 comments on commit 78fdec2

Please sign in to comment.