Versioning is managed via git tags. Then a new version tag is pushed to the repository, GoReleases pipeline automatically builds and publishes plugin to GitHub packages.
git tag v2.1.0
git push --tags
git tag -d v2.1.0-test
git push --delete origin v2.1.0-test
Make sure you logged in to CloudQuery Hub and switched to the right team:
cloudquery login
cloudquery switch koltyakov
Package the plugin:
rm -rf ./dist && go run main.go package --docs-dir docs -m @CHANGELOG.md $(git describe --tags --abbrev=0) .
Publish the plugin (draft):
cloudquery plugin publish
Publish the plugin (release):
cloudquery plugin publish --finalize