-
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.
Creates actions to publish a release (#16)
* creates actions to publish a release * godoc tool links * adds badge for pkg reference * changes module path * fixes readme issue * fixes workflow syntax * fixes go list command * removes docs duplicated link from README Co-authored-by: Tácio Tavares <tacio@MacBook-Air-de-Marina.local>
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 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,25 @@ | ||
name: Publish Release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
run-go-tests: | ||
name: Publish Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Setup Go Environment | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
check-latest: true | ||
- name: Go Tidy | ||
run: go mod tidy | ||
- name: Run Tests | ||
run: make test | ||
- name: Go List | ||
run: GOPROXY=proxy.golang.org go list -m github.com/taciogt/envtags@{{ github.ref }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module taciogt/envtags | ||
module github.com/taciogt/envtags | ||
|
||
go 1.18 |