-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: new release process with goreleaser and GitHub Actions
- Loading branch information
Showing
11 changed files
with
257 additions
and
29 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,28 @@ | ||
<!-- Please replace {Please write here} with your description --> | ||
|
||
|
||
## Expected Behavior | ||
|
||
{Please write here} | ||
|
||
|
||
## Actual Behavior | ||
|
||
{Please write here} | ||
|
||
|
||
## Steps to Reproduce (including precondition) | ||
|
||
{Please write here} | ||
|
||
|
||
## Screenshot on This Problem (if possible) | ||
|
||
{Please write here} | ||
|
||
|
||
## Your Environment | ||
|
||
- OS: {Please write here} | ||
- passgen version: {Please write here} | ||
|
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,35 @@ | ||
<!-- Thank you for your contribution to passgen! Please replace {Please write here} with your description --> | ||
|
||
|
||
## What does this do / why do we need it? | ||
|
||
{Please write here} | ||
|
||
|
||
## How this PR fixes the problem? | ||
|
||
{Please write here} | ||
|
||
|
||
## What should your reviewer look out for in this PR? | ||
|
||
{Please write here} | ||
|
||
|
||
## Check lists | ||
|
||
* [ ] Test passed | ||
* [ ] Coding style (indentation, etc) | ||
|
||
|
||
## Additional Comments (if any) | ||
|
||
{Please write here} | ||
|
||
|
||
## Which issue(s) does this PR fix? | ||
|
||
<!-- | ||
fixes # | ||
fixes # | ||
--> |
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,30 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: ['opened', 'synchronize'] | ||
paths: | ||
- '**.go' | ||
- go.mod | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
binaries: | ||
runs-on: macos-11 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist --skip-publish --snapshot --skip-sign --debug |
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,27 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: macos-11 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_TOKEN: ${{ secrets.GORELEASER_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,30 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'README.md' | ||
pull_request: | ||
types: ['opened', 'synchronize'] | ||
paths-ignore: | ||
- 'README.md' | ||
jobs: | ||
unit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
- name: Setup Dependencies | ||
run: | | ||
sudo apt-get update -q | ||
sudo apt-get install -qqy libpcsclite-dev | ||
- name: Run tests | ||
run: make test |
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 |
---|---|---|
|
@@ -3,3 +3,6 @@ build/ | |
exp/ | ||
.token | ||
vendor/ | ||
|
||
dist/ | ||
.vscode |
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 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=1 | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
amd64: x86_64 | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ incpatch .Tag }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
brews: | ||
- tap: | ||
owner: kreuzwerker | ||
name: homebrew-taps | ||
token: "{{ .Env.GORELEASER_TOKEN }}" | ||
homepage: "https://github.com/kreuzwerker/awsu" | ||
description: "It provides a convenient integration of AWS virtual MFA devices into commandline based workflows." |
This file was deleted.
Oops, something went wrong.
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
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
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