mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
chore: add release.snapshot task
This commit is contained in:
parent
1fcc058fab
commit
29ca34e0d5
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
*.out
|
*.out
|
||||||
*.log
|
*.log
|
||||||
/bin/
|
/bin/
|
||||||
|
/dist/
|
||||||
/tmp/
|
/tmp/
|
||||||
|
|
||||||
## Git
|
## Git
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
6
Makefile
6
Makefile
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user