amplitude / analytics-go

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

chore: update `release` workflow #40

Closed falconandy closed 1 year ago

falconandy commented 2 years ago

Summary

Release workflow is updated:

  1. should be run manually
  2. possible options - minor, patch and current. The current value should be used for major versions - in this case new tag (for example, v2.0.0) should be assigned manually, SdkVersion in constants.go should be set manually, and some additional actions are required: https://go.dev/doc/modules/major-version https://go.dev/blog/v2-go-modules

Checklist

liuyang1520 commented 2 years ago

Thanks for the PR! I saw the current release process is not automated, need to manually add the tag, then wait for the release workflow to finish, then curl the go pkg site. Will this PR address the automation?

falconandy commented 2 years ago

@liuyang1520 Yes, this PR automates all steps for patch/minor versions. New release workflow should be started manually - that's it.