Skip to content

Commit

Permalink
Add automatic version releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
topscoder committed Jun 2, 2023
1 parent b9c84d3 commit 3010c2a
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 🙏🏻 Lint Test

on:
push:
paths:
- '**.go'
- '**.mod'
workflow_dispatch:

jobs:
lint:
name: Lint Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19

- name: Checkout code
uses: actions/checkout@v3

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
with:
version: latest
args: --timeout 5m
working-directory: .
30 changes: 30 additions & 0 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 🎉 Release Binary

on:
push:
tags:
- v*
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.19

- name: "Create release on GitHub"
uses: goreleaser/goreleaser-action@v4
with:
args: "release --clean"
version: latest
workdir: .
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ This script tries to get related domains and/or subdomains by looking at Google

**Note**: It does not work with all websites. It is searched by the following expressions:

* `*"www\.googletagmanager\.com/ns\.html\?id=[A-Z0-9\-]+"`
* `"www\.googletagmanager\.com/ns\.html\?id=[A-Z0-9\-]+"`
* `GTM-[A-Z0-9]+`
* `*"UA-\d+-\d+"`
* `"UA-\d+-\d+"`

## Installation

Expand Down

0 comments on commit 3010c2a

Please sign in to comment.