Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
dubs3c committed Jan 5, 2022
1 parent 203036b commit 3444899
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .goreleaser
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
builds:
- main: .
binary: emissary
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64

changelog:
sort: asc
filters:
exclude:
- balls
- docs
- Merge pull request
- Merge branch

archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
22 changes: 22 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# nothing to see here, just a utility i use to create new releases ^_^

CURRENT_VERSION=$(cat version.go | grep VERSION | cut -d '"' -f 2)

echo -n "Current version is $CURRENT_VERSION, select new version: "
read NEW_VERSION
echo "Creating version $NEW_VERSION ..."

echo "Updating version.go"
sed -i "s/$CURRENT_VERSION/$NEW_VERSION/g" version.go

git add version.go
git commit -m "Releasing v$NEW_VERSION"
git push

git tag -a v$NEW_VERSION -m "Release v$NEW_VERSION"
git push origin v$NEW_VERSION

rm -rf dist

echo "All done, just run goreleaser now ^_^"
File renamed without changes.
4 changes: 4 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package main

// VERSION Emissary version
const VERSION = "0.5"

0 comments on commit 3444899

Please sign in to comment.