Skip to content

Commit

Permalink
Creates actions to publish a release (#16)
Browse files Browse the repository at this point in the history
* 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
taciogt and Tácio Tavares authored Dec 24, 2022
1 parent 8a80d64 commit f7b5ac1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-release.yml
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 }}

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# envtags

[![Go Reference](https://pkg.go.dev/badge/github.com/taciogt/envtags.svg)](https://pkg.go.dev/github.com/taciogt/envtags)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6904ddba8e6747559c7b4141b0f91e71)](https://www.codacy.com/gh/taciogt/envtags/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=taciogt/envtags&amp;utm_campaign=Badge_Grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/6904ddba8e6747559c7b4141b0f91e71)](https://www.codacy.com/gh/taciogt/envtags/dashboard?utm_source=github.com&utm_medium=referral&utm_content=taciogt/envtags&utm_campaign=Badge_Coverage)

Expand Down Expand Up @@ -57,4 +58,5 @@ Inspired by
* https://github.com/caarlos0/env

References
* https://go.dev/ref/spec#Numeric_types
- [Go numeric types](https://go.dev/ref/spec#Numeric_types)
- [godoc](https://go.dev/blog/godoc)
2 changes: 1 addition & 1 deletion go.mod
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

0 comments on commit f7b5ac1

Please sign in to comment.