Skip to content

Commit b8ec9b8

Browse files
committed
add publish workflow
1 parent f3facbc commit b8ec9b8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish artifacts
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
concurrency: release-${{ github.event.release.tag_name }}
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
publish-go-module:
15+
name: Publish go module
16+
runs-on: ubuntu:22.04
17+
18+
steps:
19+
- name: Trigger registration on sum.golang.org
20+
run: |
21+
curl -sSf \
22+
--max-time 30 \
23+
--retry 5 \
24+
--retry-max-time 300 \
25+
https://sum.golang.org/lookup/github.com/${{ github.repository }}@${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)