chore: add release.snapshot task

This commit is contained in:
Kevin Franklin Kim 2025-05-28 17:29:42 +02:00
parent 1fcc058fab
commit 29ca34e0d5
No known key found for this signature in database
3 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
*.out *.out
*.log *.log
/bin/ /bin/
/dist/
/tmp/ /tmp/
## Git ## Git

View File

@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2 version: 2
project_name: contentserver project_name: contentserver
@ -29,10 +30,10 @@ builds:
- -s -w -X github.com/foomo/contentserver/cmd.version={{.Version}} - -s -w -X github.com/foomo/contentserver/cmd.version={{.Version}}
archives: archives:
- format: tar.gz - formats: [ tar.gz ]
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip formats: [ zip ]
changelog: changelog:
use: github-native use: github-native

View File

@ -67,6 +67,12 @@ build:
@mkdir -p bin @mkdir -p bin
@go build -tags=safe -o bin/contentserver main.go @go build -tags=safe -o bin/contentserver main.go
.PHONY: release.snapshot
## Create a goreleaser snapshot release
release.snapshot:
@rm -rf ./dist
@goreleaser release --snapshot
## === Utils === ## === Utils ===
.PHONY: help .PHONY: help