Skip to content

Commit 7df49cb

Browse files
committed
chore: add Go module publishing to release workflow
1 parent 9550a71 commit 7df49cb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '1.18'
22+
23+
- name: Verify Go module
24+
run: |
25+
go mod tidy
26+
go mod verify
27+
go list -m
28+
29+
- name: Publish Go module
30+
run: |
31+
# Request Go proxy to fetch the module
32+
GOPROXY=https://proxy.golang.org GO111MODULE=on go list -m github.com/invoicetronic/go-sdk@${{ github.ref_name }}
33+
1834
- name: Create Release
1935
uses: softprops/action-gh-release@v2
2036
with:

0 commit comments

Comments
 (0)