-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use release script instead of action
- Loading branch information
Showing
3 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ go.work* | |
xtemplate | ||
xtemplate.exe | ||
caddy | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
go tool dist list | ||
|
||
rm -r dist | ||
|
||
GOOS=linux GOARCH=amd64 go build -buildmode exe -o ./dist/xtemplate-amd64-linux/xtemplate ./cmd | ||
GOOS=darwin GOARCH=amd64 go build -buildmode exe -o ./dist/xtemplate-amd64-darwin/xtemplate ./cmd | ||
GOOS=windows GOARCH=amd64 go build -buildmode exe -o ./dist/xtemplate-amd64-windows/xtemplate.exe ./cmd | ||
|
||
printf '%s\n' dist/* | while read D; do | ||
cp README.md LICENSE "$D" | ||
tar czvf "$D.tar.gz" "$D/" | ||
rm -r "$D" | ||
done | ||
|
||
ls -lh dist/* |