- added workflow for releasing
This commit is contained in:
Tiger Wang (王豫)
2022-08-06 22:52:14 -04:00
committed by GitHub
parent e2b617e510
commit 7792496f2d
4 changed files with 112 additions and 18 deletions
+43
View File
@@ -0,0 +1,43 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: casaos-user-service
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- binary: build/usr/bin/casaos-user-service
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- arm
goarm:
- 7
archives:
- name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}"
replacements:
arm: arm-7
files:
- build/**/*
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: IceWhaleTech
name: CasaOS-UserService
draft: true
prerelease: auto
mode: replace
name_template: "v{{ .Version }}"