Skip to content

Commit

Permalink
update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciferInLove committed Jun 9, 2023
1 parent 5cb9075 commit cb20d5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.16
go-version: '>=1.20.0'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ archives:
format_overrides:
- goos: windows
format: zip
replacements:
amd64: x86_64
darwin: macOS
files:
- none*
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ func action(c *cli.Context) error {
cli.ShowAppHelp(c)
return fmt.Errorf("\nIncorrect Usage. Wrong tag definition in flag -t")
}
//return fmt.Errorf("Listing AWS instances:\n%w", err)
instances = []string{`{"Number":1,"IP":"172.16.0.11","Name":"test-instance","Zone":"us-east-1a"}`}
return fmt.Errorf("Listing AWS instances:\n%w", err)
}

result, err := promptSelect(instances)
Expand Down

0 comments on commit cb20d5e

Please sign in to comment.