From 432ad0d6242d945c151084dcc07236999d488e33 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Thu, 18 Apr 2024 10:17:45 +0200 Subject: [PATCH] v0.1.0 + goreleaser #291 --- .github/release.yml | 17 ++++++++++++ .github/workflows/release-binary.yml | 31 +++++++++++++++++++++ .github/workflows/release-test.yml | 28 +++++++++++++++++++ .goreleaser.yaml | 41 ++++++++++++++++++++++++++++ pkg/output/banner.go | 2 +- snapcraft.yaml | 2 +- 6 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 .github/release.yml create mode 100644 .github/workflows/release-binary.yml create mode 100644 .github/workflows/release-test.yml create mode 100644 .goreleaser.yaml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..1073bdc --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,17 @@ +changelog: + exclude: + authors: + - dependabot + categories: + - title: 🎉 New Features + labels: + - "Type: Enhancement" + - title: 🐞 Bug Fixes + labels: + - "Type: Bug" + - title: 🔨 Maintenance + labels: + - "Type: Maintenance" + - title: Other Changes + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml new file mode 100644 index 0000000..5f798d4 --- /dev/null +++ b/.github/workflows/release-binary.yml @@ -0,0 +1,31 @@ +name: 🎉 Release Binary + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: "Check out code" + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: "Set up Go" + uses: actions/setup-go@v4 + with: + go-version: 1.21.x + + - name: "Create release on GitHub" + timeout-minutes: 10 + uses: goreleaser/goreleaser-action@v4 + with: + args: "release --clean" + version: latest + workdir: . + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml new file mode 100644 index 0000000..9286768 --- /dev/null +++ b/.github/workflows/release-test.yml @@ -0,0 +1,28 @@ +name: 🔨 Release Test + +on: + pull_request: + paths: + - '**.go' + - '**.mod' + workflow_dispatch: + +jobs: + release-test: + runs-on: ubuntu-latest + steps: + - name: "Check out code" + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.21.x + + - name: release test + uses: goreleaser/goreleaser-action@v4 + with: + args: "release --clean --snapshot" + version: latest \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..070eae7 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,41 @@ +release: + header: | + ## favirecon {{ .Tag }} 🥳 + *Use favicon.ico to improve your target recon phase. Quickly detect technologies, WAF, exposed panels, known services.* + + footer: | + If you encounter a problem, just open an [issue](https://github.com/edoardottt/favirecon/issues) + +before: + hooks: + - go mod tidy + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + goarch: + - amd64 + - 386 + - arm + - arm64 + ignore: + - goos: darwin + goarch: '386' + - goos: windows + goarch: 'arm' + - goos: windows + goarch: 'arm64' + binary: '{{ .ProjectName }}' + main: ./cmd/favirecon/ + +archives: +- format: zip + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}' + +checksum: + algorithm: sha256 + diff --git a/pkg/output/banner.go b/pkg/output/banner.go index 506d766..df31152 100644 --- a/pkg/output/banner.go +++ b/pkg/output/banner.go @@ -12,7 +12,7 @@ import "github.com/projectdiscovery/gologger" var printed = false const ( - Version = "v0.0.7" + Version = "v0.1.0" banner = ` ____ _ / __/___ __ __(_)_______ _________ ____ / /_/ __ ` + `\/ | / / / ___/ _ \/ ___/ __ \/ __ \ diff --git a/snapcraft.yaml b/snapcraft.yaml index 53db9f4..af09144 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -3,7 +3,7 @@ summary: Use favicon.ico to improve your target recon phase description: | Use favicon.ico to improve your target recon phase. Quickly detect technologies, WAF, exposed panels, known services. -version: 0.0.7 +version: 0.1.0 grade: stable base: core20