From 0531326a493502c0acb1cb9fe14f672d29524ad4 Mon Sep 17 00:00:00 2001 From: Matt Jibson Date: Thu, 16 Mar 2023 10:14:06 -0600 Subject: [PATCH] snapshot --- .gitignore | 2 +- .goreleaser.yml | 12 ---------- backend/.goreleaser.yaml | 47 ++++++++++++++++++++++++++++++++++++++++ build.md | 10 +++++++++ 4 files changed, 58 insertions(+), 13 deletions(-) delete mode 100644 .goreleaser.yml create mode 100644 backend/.goreleaser.yaml create mode 100644 build.md diff --git a/.gitignore b/.gitignore index 4552abac..3cea31e5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -dist +backend/dist sqlfmt diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index e5629476..00000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,12 +0,0 @@ -builds: -- env: - - CGO_ENABLED=0 - goarch: - - amd64 - goos: - - linux - - darwin - - windows -archive: - files: - - none* diff --git a/backend/.goreleaser.yaml b/backend/.goreleaser.yaml new file mode 100644 index 00000000..c3e7963e --- /dev/null +++ b/backend/.goreleaser.yaml @@ -0,0 +1,47 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + goarch: + - amd64 + +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" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + +# The lines beneath this are called `modelines`. See `:help modeline` +# Feel free to remove those if you don't want/use them. +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj diff --git a/build.md b/build.md new file mode 100644 index 00000000..33287f0f --- /dev/null +++ b/build.md @@ -0,0 +1,10 @@ +tag: + +git tag v0.X.0 +git push origin v0.x.0 + +build: + +cd backend +export GITHUB_TOKEN=BLAH +goreleaser release