From 14b557e66b0da68f72f8150f84d21f00387ac833 Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Wed, 20 Dec 2023 14:26:19 -0600 Subject: [PATCH] support releasing alphas etc --- .github/workflows/clojure.yml | 6 ++++++ README.md | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 2d3c8d0..fd5cfa1 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -80,6 +80,12 @@ jobs: lein release :minor elif [[ "$COMMIT_MSG" == "Release :patch" ]]; then lein release :patch + elif [[ "$COMMIT_MSG" == "Release :alpha" ]]; then + lein release :alpha + elif [[ "$COMMIT_MSG" == "Release :beta" ]]; then + lein release :beta + elif [[ "$COMMIT_MSG" == "Release :rc" ]]; then + lein release :rc else lein deploy snapshot fi diff --git a/README.md b/README.md index e238096..1a9ad8c 100644 --- a/README.md +++ b/README.md @@ -446,8 +446,8 @@ One can add extra meta-data, including descriptions to schema elements using `ri To release a version, set the project.clj version to the one you want to release, but with a `-SNAPSHOT` suffix. -Then create a commit reading "Release :{major,minor,patch}" based on whether -you want the next development version to be a major/minor/patch increment. +Then create a commit reading "Release :{major,minor,patch,alpha,beta,rc}" based on whether +you want the next development version to be a major/minor/patch/alpha/beta/rc increment. Push to master, and the GitHub Actions release will release the jar to clojars, then bump the version on the master branch.