Skip to content

Commit

Permalink
Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Jul 17, 2022
1 parent 1bd55cb commit 0d364f1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
name: Release
strategy:
matrix:
os: [ubuntu-latest]
go-version: ["1.18"]
runs-on: ${{ matrix.os }}

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: sh build.sh ${GITHUB_REF##*/}
- name: Upload
uses: softprops/action-gh-release@v1
with:
files: dist/*.zip
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ for p in macos_amd macos_arm windows linux; do
mv ${p} gaze_${p}_${version}
zip -r gaze_${p}_${version}.zip ./gaze_${p}_${version}
done

2 changes: 1 addition & 1 deletion cmd/gaze/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/wtetsu/gaze/pkg/logger"
)

const version = "v1.1.0"
const version = "v1.1.1"

func main() {
args := app.ParseArgs(os.Args, func() {
Expand Down

0 comments on commit 0d364f1

Please sign in to comment.