-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Umut Isik
committed
Mar 13, 2020
1 parent
8f33b94
commit 5167327
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Test & Build | ||
on: [push, pull_request] | ||
jobs: | ||
|
||
test-build: | ||
name: Test & Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build | ||
run: go build ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build And Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Unshallow | ||
run: git fetch --prune --unshallow | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.x | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
key: ${{ secrets.YOUR_PRIVATE_KEY }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: WOSPM Checker | ||
on: [push] | ||
|
||
jobs: | ||
wospm_checker: | ||
runs-on: ubuntu-latest | ||
name: WOSPM Checker | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: WOSPM Checker Github Action | ||
uses: WOSPM/wospm-checker-github-action@v1 | ||
- name: Upload HTML Report When Success | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: HTML Report | ||
path: wospm.html | ||
- name: Upload HTML Report When Failed | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: HTML Report | ||
path: wospm.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,33 @@ | |
go build | ||
``` | ||
|
||
## How To Install | ||
|
||
### Basic | ||
|
||
Follow the steps; | ||
|
||
> git clone [email protected]:umutphp/hacker-laws-cli.git | ||
> cd hacker-laws-cli | ||
> go run main.go | ||
### Build as binary | ||
|
||
Follow the steps; | ||
|
||
> git clone [email protected]:umutphp/hacker-laws-cli.git | ||
> cd hacker-laws-cli | ||
> sudo go build -o /usr/local/bin/hacker-laws-cli . | ||
> hacker-laws-cli list | ||
### Download and use official binary | ||
|
||
Visit the latest release page and download the binary correspondingly. | ||
|
||
> wget -O /usr/local/bin/hacker-laws-cli https://latest-binary-url | ||
> hacker-laws-cli | ||
|
||
## How To Use | ||
|
||
The build will create an executable with name *hacker-laws-cli*. | ||
|