Skip to content

Commit f56cc78

Browse files
committed
add workflow to trigger sum.golang.org update after release
1 parent 2877719 commit f56cc78

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
repository=${{ github.repository }}
22+
tag=${{ github.event.release.tag_name }}
23+
curl -sSf \
24+
--max-time 30 \
25+
--retry 5 \
26+
--retry-max-time 300 \
27+
https://sum.golang.org/lookup/github.com/${repository,,}@${tag}

0 commit comments

Comments
 (0)