Skip to content

Commit

Permalink
Fix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadiuszNitkaSWI committed Jul 2, 2024
1 parent e3b3b02 commit 88d98b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# .github/workflows/release.yml
name: goreleaser
name: release

on:
pull_request:
push:
tags:
- "v*"
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ env:
builds:
- main: ./cmd/swo/main.go
binary: swo
ldflags:
- "-s -w -X 'main.version=v{{ .Version }}'"
targets:
- darwin_amd64
- darwin_arm64
Expand All @@ -18,7 +20,7 @@ archives:

universal_binaries:
- replace: true
# name_template: "{{.ProjectName}}_{{ .Os }}"
name_template: "swo"

changelog:
disable: true
Expand Down
4 changes: 1 addition & 3 deletions cmd/swo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import (
"os"
)

const (
version = "v1.1.0"
)
var version = "v0.0.0"

func main() {
app := &cli.App{
Expand Down

0 comments on commit 88d98b0

Please sign in to comment.