From 920427fb52a3e8d8172ca98d24a20dac18f21d62 Mon Sep 17 00:00:00 2001 From: MAO YiFeng Date: Tue, 18 Oct 2022 00:33:26 +0800 Subject: [PATCH] Create go.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 毛 一枫 --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++++++++ README.md | 6 +++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..5a3dfa5 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,31 @@ +name: Release Go project + +on: + push: + tags: + - "*" # triggers only if push new tag version, like `0.8.4` or else + +jobs: + build: + name: GoReleaser build + runs-on: ubuntu-latest + + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + with: + fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ + + - name: Set up Go 1.19.2 + uses: actions/setup-go@v2 + with: + go-version: 1.19.2 + id: go + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@master + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} diff --git a/README.md b/README.md index d5e7da0..eef36b4 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ ```bash # 扫描 1-65535 -./scanPort -h 192.168.0.1 -p 1- +./portScan -h 192.168.0.1 -p 1- # 扫描 80-1000 -./scanPort -h 192.168.0.1 -p 80-1000 +./portScan -h 192.168.0.1 -p 80-1000 # 扫描 22,80,8080,1024 -./scanPort -h 192.168.0.1 -p 22,80,8080,1024 +./portScan -h 192.168.0.1 -p 22,80,8080,1024 ``` \ No newline at end of file