From 40a89f45088d3fb4581b67fead2142dcc6970dbc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ricau Date: Tue, 27 Aug 2024 12:59:00 -0700 Subject: [PATCH] Single release command --- RELEASING.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index 6ec227c..3cc191f 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -16,7 +16,7 @@ brew install gh mate CHANGELOG.md ``` -* Create a local release branch from `main` and update `VERSION_NAME` in `gradle.properties` (removing `-SNAPSHOT`) and the README, then start the publish workflow: +* Create a local release branch from `main` and update `VERSION_NAME` in `gradle.properties` (removing `-SNAPSHOT`) and the README, then run the publish workflow and finish the release: ```bash git checkout main && \ @@ -31,12 +31,7 @@ git commit -am "Prepare {NEW_VERSION} release" && \ git tag v{NEW_VERSION} && \ git push origin v{NEW_VERSION} && \ gh workflow run publish-release.yml --ref v{NEW_VERSION} && \ -gh run watch -``` - -* Press enter to confirm selection of the currently running workflow, wait for it to finish running then finish the release: - -```bash +gh run list --workflow=publish-release.yml --branch v{NEW_VERSION} --json databaseId --jq ".[].databaseId" | xargs -I{} gh run watch {} --exit-status && \ git checkout main && \ git pull && \ git merge --no-ff --no-edit release_{NEW_VERSION} && \