Skip to content

Commit

Permalink
workflow + version update
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed Jan 7, 2022
1 parent 90781f2 commit e78c91e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 26 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
name: 🎉 Release Binary

on:
create:
push:
tags:
- '*'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}

steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: 1.17

- uses: goreleaser/goreleaser-action@v2
with:
args: "release --rm-dist"
Expand Down
51 changes: 32 additions & 19 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
before:
hooks:
- go mod tidy

builds:
- binary: shuffledns
main: cmd/shuffledns/main.go
goos:
- linux
- windows
- darwin
goarch:
- amd64
- 386
- arm
- arm64

- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- 386
- arm64

ignore:
- goos: darwin
goarch: '386'
- goos: windows
goarch: 'arm'
- goos: windows
goarch: 'arm64'

binary: '{{ .ProjectName }}'
main: cmd/shuffledns/main.go

archives:
- id: tgz
format: tar.gz
replacements:
darwin: macOS
format_overrides:
- goos: windows
format: zip
- format: zip
replacements:
darwin: macOS

checksum:
algorithm: sha256
4 changes: 2 additions & 2 deletions pkg/runner/banners.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const banner = `
__ ________ __
___ / / __ __/ _/ _/ /__ ___/ /__ ___
(_-</ _ \/ // / _/ _/ / -_)/ _ / _ \(_-<
/___/_//_/\_,_/_//_//_/\__/ \_,_/_//_/___/ v1
/___/_//_/\_,_/_//_//_/\__/ \_,_/_//_/___/ v1.0.5
`

// Version is the current version of naabu
const Version = `1.0.4`
const Version = `v1.0.5`

// showBanner is used to show the banner to the user
func showBanner() {
Expand Down

0 comments on commit e78c91e

Please sign in to comment.