forked from mkideal/onepw
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
adb50da
commit b419776
Showing
4 changed files
with
60 additions
and
15 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,26 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
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,29 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
project_name: onepw | ||
|
||
env: | ||
- GO111MODULE=on | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- main: . | ||
binary: mypw | ||
env: | ||
- PKG=github.com/mkideal/pkg/build | ||
ldflags: '-s -w -X {{ .Env.PKG }}.version={{.Version}} | ||
-X {{ .Env.PKG }}.commit={{.ShortCommit}} | ||
-X {{ .Env.PKG }}.date={{.Date}}' | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
archives: | ||
- files: | ||
- README.md | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
release: | ||
prerelease: auto |
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
module github.com/mkideal/onepw | ||
module github.com/cloud-org/onepw | ||
|
||
go 1.13 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/kr/pretty v0.3.0 // indirect | ||
github.com/labstack/gommon v0.3.0 | ||
github.com/mattn/go-colorable v0.1.7 | ||
github.com/mkideal/cli v0.2.2 | ||
github.com/mkideal/onepw v0.0.0-00010101000000-000000000000 | ||
github.com/mkideal/pkg v0.1.2 | ||
github.com/xuri/excelize/v2 v2.6.0 | ||
golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 | ||
) | ||
|
||
replace github.com/mkideal/onepw => ./ |
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