amplitude / analytics-go

Go Amplitude Analytics SDK
MIT License
12 stars 7 forks source link

ci: AMP-56385-release-pipeline #20

Closed Mercy811 closed 2 years ago

Mercy811 commented 2 years ago

Summary

Refer to this post

build.yml

  1. triggered when push/PR to main branch
  2. linter golangci-lint run
  3. test go test -v -cover
  4. build binaries for all platform

release.yml

  1. triggered when a git tag starting with v is pushed
  2. double check linter and same as build.yml
  3. double check test and same as build.yml
  4. auto generate release note from .github/RELEASE-TEMPLATE.md

publish.yml

  1. triggered when a release occurs
  2. publish it to https://pkg.go.dev/

Checklist

kevinpagtakhan commented 2 years ago

I think on each release we also need to update this line: https://github.com/amplitude/analytics-go/blob/main/amplitude/constants.go#L13. If we stick to a multi step process, it would be nice to have a release runbook

bgiori commented 2 years ago

Looks great, probably going to steal this for the experiment SDK 😈