Skip to content

Commit

Permalink
Single release command
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Aug 27, 2024
1 parent 4d28e22 commit 40a89f4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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} && \
Expand Down

0 comments on commit 40a89f4

Please sign in to comment.