Skip to content

Commit

Permalink
create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
orltom committed Jan 7, 2025
1 parent 1faed6d commit 671b2b9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/github-actions-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Release ocsctl

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'

- name: Build
run: GOOS=linux GOARCH=amd64 go build -o ocsctl -ldflags '-s -w' ./cmd

- name: Upload Release Asset
uses: actions/upload-artifact@v4
with:
name: ocsctl-linux-amd64
path: ocsctl
2 changes: 1 addition & 1 deletion cmd/create_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func RunCreateShiftPlan(writer io.Writer, arguments []string) error {
fmt.Fprintf(writer, "\nUsage\n")
fmt.Fprintf(writer, " %s create [flags]\n", os.Args[0])
fmt.Fprintf(writer, "\nFlags:\n")
flag.PrintDefaults()
createCommand.PrintDefaults()
fmt.Fprintf(writer, "\nUse \"%s create -h\" for more information about a command\n", os.Args[0])
}

Expand Down

0 comments on commit 671b2b9

Please sign in to comment.