Skip to content

Commit

Permalink
Set default version/date
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Jan 3, 2023
1 parent e5ad9e3 commit 55e8f1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ jobs:
- name: Build
run: go build -v .

- name: Run goreleaser in snapshot mode
if: success() && ! startsWith(github.ref, 'refs/tags/v')
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot

# - name: Upload assets for snapshots
# if: success() && ! startsWith(github.ref, 'refs/tags/v')
# uses: actions/upload-artifact@v2
# with:
# name: check_elasticsearch
# path: dist/*

- name: Run goreleaser in release mode
if: success() && startsWith(github.ref, 'refs/tags/v')
uses: goreleaser/goreleaser-action@v2
Expand Down
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
)

var (
version = "0.2.0"
commit = "f9eefa1"
date = "25.11.2022"
// These get filled at build time with the proper vaules
version = "development"
commit = "HEAD"
date = "latest"
)

func main() {
Expand Down

0 comments on commit 55e8f1f

Please sign in to comment.