Skip to content

Commit

Permalink
Release Script Update to Fix Plugin go.mod Lag (#310)
Browse files Browse the repository at this point in the history
Update `scripts/release.sh` to cut a release branch for the plugin
module with the updated version. Resolves
#303
  • Loading branch information
IfSentient authored Jun 7, 2024
1 parent 8be403c commit 6350790
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,19 @@ echo "Making a '${RELEASE}' release with tag '${TAG}'..."
git tag -s "${TAG}" -m "Release ${TAG}"
git push origin "${TAG}"

echo "Tagging submodules with the release tag"
echo "Updating the plugin module to use the new release for the main module"
git checkout -b "plugin-release/${TAG}"
cd $(git rev-parse --show-toplevel)/plugin
go get github.com/grafana/grafana-app-sdk@${TAG}
git add go.mod go.sum
git commit -m "Plugin module release branch ${TAG}"
git push -u origin "plugin-release/${TAG}"

echo "Tagging submodule with the release tag"
git tag -s "plugin/${TAG}" -m "Plugin submodule release ${TAG}"
git push origin "plugin/${TAG}"

echo "Returning to main branch"
git checkout main

exit 0

0 comments on commit 6350790

Please sign in to comment.