Skip to content

Commit

Permalink
Goreleaser and Dependabot (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler authored Feb 6, 2023
1 parent bad4543 commit 43cb243
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/pyml-validator.yml

.DS_Store

dist/
34 changes: 30 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,43 @@
---
project_name: pyml-validator

# don't compile anything
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- skip: true # TODO: Build for releases.
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
# configure what shows up in the changelog
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch

Expand Down

0 comments on commit 43cb243

Please sign in to comment.