Skip to content

Commit

Permalink
correct publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
amalfra committed Apr 9, 2024
1 parent 097f238 commit 86410ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v2
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- run: |
echo "publishing version: ${{steps.tag.outputs.tag}}"
curl https://proxy.golang.org/github.com/amalfra/gin-statsd/@v/${{steps.tag.outputs.tag}}.info
MOD_NAME=$(go list -m)
GOPROXY=proxy.golang.org go list -m $MOD_NAME@${{steps.tag.outputs.tag}}

0 comments on commit 86410ee

Please sign in to comment.