chore(ci): update goreleaser and ci
build / build (push) Successful in 10m12s Details

This commit is contained in:
DataHearth 2023-07-17 23:36:05 +02:00
parent fac6dd5b69
commit 4f66244e9a
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
2 changed files with 21 additions and 8 deletions

View File

@ -3,7 +3,7 @@ name: release
on: on:
push: push:
tags: tags:
- "*" - "v*.*.*"
jobs: jobs:
release: release:
@ -20,7 +20,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: 1.17 go-version: 1.20
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...

View File

@ -8,13 +8,26 @@ builds:
- linux - linux
- windows - windows
- darwin - darwin
goarch:
- "386"
- amd64
- arm
- arm64
archives: archives:
- replacements: - format: tar.gz
darwin: Darwin files:
linux: Linux - LICENSE
windows: Windows - README.md
386: i386 - .config-mapper.yml.template
amd64: x86_64 - CHANGELOG.md
name_template: >-
{{ .ProjectName }}_
{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
gitea_urls: gitea_urls:
api: https://gitea.antoine-langlois.net/api/v1 api: https://gitea.antoine-langlois.net/api/v1
download: https://gitea.antoine-langlois.net download: https://gitea.antoine-langlois.net