Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:[close #25] Automate Versioning #323

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
apt-get install -y libbtrfs-dev libdevmapper-dev libgpgme-dev pkg-config build-essential libdpkg-dev

- name: Build
run: go build -o abrootv2
run: go build -o abrootv2 -ldflags="-X 'main.Version=${{ github.sha }}'"

- name: Test
run: go test -v ./tests/...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
apt-get install -y libbtrfs-dev libdevmapper-dev libgpgme-dev pkg-config build-essential

- name: Build
run: go build -o abrootv2
run: go build -o abrootv2 -ldflags="-X 'main.Version=${{ github.ref_name }}'"

- name: Compress
run: tar -czvf abrootv2.tar.gz abrootv2
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/vanilla-os/orchid/cmdr"
)

var Version = "2.0.1"
var Version = "development"

//go:embed locales/*.yml
var fs embed.FS
Expand Down