-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update release process (#40)
* chore(ci): add gh actions and templates * chore: remove travis * chore(ci): add goreleaser * fix(makefile): remove old release logic Closes #28 as well.
- Loading branch information
Showing
9 changed files
with
193 additions
and
23 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} | ||
- envplate 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 envplate! 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,29 @@ | ||
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 Prerequisites | ||
run: | | ||
chmod 765 test/filemode.txt | ||
- 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/ | ||
dist | ||
.token | ||
.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,39 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- linux | ||
goarch: | ||
- arm64 | ||
- amd64 | ||
- "386" | ||
goarm: | ||
- 6 | ||
main: ./bin/ep.go | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
386: i386 | ||
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/envplate" | ||
description: "Docker-friendly trivial templating for configuration files using environment keys." |
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