add release

This commit is contained in:
divyam234 2023-08-21 03:52:20 +05:30
parent 54d759016e
commit 5bef6d267e
3 changed files with 79 additions and 1 deletions

13
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
assignees:
- "divyam234"

View file

@ -22,12 +22,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.21
cache: true
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --rm-dist --timeout 1h
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

64
.goreleaser.yaml Normal file
View file

@ -0,0 +1,64 @@
project_name: teldrive
dist: .teldrive/dist
env:
- GO111MODULE=on
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X {{ .ModulePath }}/pkg/consts.Version={{ .Version }}
- -X {{ .ModulePath }}/pkg/consts.Commit={{ .ShortCommit }}
- -X {{ .ModulePath }}/pkg/consts.CommitDate={{ .CommitDate }}
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 5
- 6
- 7
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: MacOS
linux: Linux
windows: Windows
386: 32bit
amd64: 64bit
format_overrides:
- goos: windows
format: zip
files:
- README*.md
- LICENSE
changelog:
use: github
sort: asc
groups:
- title: New Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Documentation updates'
regexp: "^.*docs[(\\w)]*:+.*$"
order: 2
- title: 'Refactoring'
regexp: "^.*refactor[(\\w)]*:+.*$"
order: 3
- title: Others
order: 4
release:
draft: true