Skip to content

Correct publish script #15

Correct publish script

Correct publish script #15

Workflow file for this run

on:
release:
types: [published]
name: Publish
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}}"
MOD_NAME=$(go list -m)
GOPROXY=proxy.golang.org go list -m $MOD_NAME@${{steps.tag.outputs.tag}}