From 16b7d8f6d48309a8b2bb5bb6c32d51c3e1cbdcc8 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 11 Aug 2023 08:50:53 +0200 Subject: [PATCH] Update release instructions (#1104) --- RELEASE.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 1819773af..35c26bfba 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -33,24 +33,31 @@ _Note: It's useful to add the version to the commit message when you bump it: e. Once the version bump PR has been merged, run the following commands: ```bash -VERSION=$(sed -n -E 's/^const Version = "([0-9]+\.[0-9]+\.[0-9]+)"$/v\1/p' cmd/version.go) +VERSION=$(sed -n -E 's/^const Version = "([0-9]+\.[0-9]+\.[0-9]+)"$/\1/p' cmd/version.go) +TAG_NAME="v${VERSION}" # Test run goreleaser --skip-publish --snapshot --clean # Create a new tag on the main branch and push it -git tag -a "${VERSION}" -m "Trying out GoReleaser" -git push origin "${VERSION}" +git tag -a "${TAG_NAME}" -m "Trying out GoReleaser" +git push origin "${TAG_NAME}" # Build and release goreleaser --clean +# Upload copies of the Windows files for use by the Exercism Windows installer +cp "dist/exercism-${VERSION}-windows-i386.zip" dist/exercism-windows-32bit.zip +cp "dist/exercism-${VERSION}-windows-x86_64.zip" dist/exercism-windows-64bit.zip +gh release upload "${TAG_NAME}" dist/exercism-windows-32bit.zip +gh release upload "${TAG_NAME}" dist/exercism-windows-64bit.zip + # [TODO] Push to homebrew ``` ## Cut Release on GitHub -At this point, Goreleaser will a created a draft PR at https://github.com/exercism/cli/releases/tag/vX.Y.Z. +At this point, Goreleaser will have created a draft PR at https://github.com/exercism/cli/releases/tag/vX.Y.Z. On that page, update the release description to: ```