mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
update goreleaser config
This commit is contained in:
16
.github/workflows/goreleaser-action.yml
vendored
16
.github/workflows/goreleaser-action.yml
vendored
@@ -21,10 +21,10 @@ jobs:
|
|||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --no-save --cwd ./hub/site
|
run: bun install --no-save --cwd ./beszel/site
|
||||||
|
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: bun run --cwd ./hub/site build
|
run: bun run --cwd ./beszel/site build
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
@@ -34,17 +34,7 @@ jobs:
|
|||||||
- name: GoReleaser beszel
|
- name: GoReleaser beszel
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
workdir: ./hub
|
workdir: ./beszel
|
||||||
distribution: goreleaser
|
|
||||||
version: latest
|
|
||||||
args: release --clean
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
|
||||||
|
|
||||||
- name: GoReleaser beszel-agent
|
|
||||||
uses: goreleaser/goreleaser-action@v6
|
|
||||||
with:
|
|
||||||
workdir: ./agent
|
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
args: release --clean
|
args: release --clean
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# version: 1
|
version: 2
|
||||||
|
|
||||||
project_name: beszel
|
project_name: beszel
|
||||||
|
|
||||||
@@ -7,7 +7,10 @@ before:
|
|||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- id: beszel
|
||||||
|
binary: beszel
|
||||||
|
main: cmd/hub/hub.go
|
||||||
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
@@ -16,9 +19,11 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
- arm
|
- arm
|
||||||
main: cmd/hub/hub.go
|
|
||||||
|
|
||||||
- env:
|
- id: beszel-agent
|
||||||
|
binary: beszel-agent
|
||||||
|
main: cmd/agent/agent.go
|
||||||
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
@@ -32,12 +37,22 @@ builds:
|
|||||||
ignore:
|
ignore:
|
||||||
- goos: freebsd
|
- goos: freebsd
|
||||||
goarch: arm
|
goarch: arm
|
||||||
main: cmd/agent/agent.go
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: tar.gz
|
- id: beszel
|
||||||
|
format: tar.gz
|
||||||
|
builds:
|
||||||
|
- beszel-agent
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .ProjectName }}_
|
{{ .Binary }}_
|
||||||
|
{{- .Os }}_
|
||||||
|
{{- .Arch }}
|
||||||
|
- id: beszel-agent
|
||||||
|
format: tar.gz
|
||||||
|
builds:
|
||||||
|
- beszel
|
||||||
|
name_template: >-
|
||||||
|
{{ .Binary }}_
|
||||||
{{- .Os }}_
|
{{- .Os }}_
|
||||||
{{- .Arch }}
|
{{- .Arch }}
|
||||||
# use zip for windows archives
|
# use zip for windows archives
|
||||||
|
Reference in New Issue
Block a user