From ea9ca4d7f29b3b4b7761001f15cda1bbdd9bdfd4 Mon Sep 17 00:00:00 2001 From: Cam Saul Date: Mon, 22 Aug 2022 22:36:30 -0700 Subject: [PATCH] Deploy toucan2-toucan1 --- .github/workflows/deploy.yml | 9 +++++++++ VERSION.txt | 1 + build.clj | 5 ++--- toucan1/build.clj | 5 ++--- 4 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 VERSION.txt diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cfa44055..ae681b2d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,8 +31,17 @@ jobs: key: deploy - name: Build Toucan 2 run: clojure -T:build build + - name: Build toucan2-toucan1 + run: clojure -T:build build + working-directory: toucan1 - name: Deploy Toucan 2 run: clojure -T:build deploy env: CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} + - name: Deploy toucan2-toucan1 + run: clojure -T:build deploy + working-directory: toucan1 + env: + CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} + CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} diff --git a/VERSION.txt b/VERSION.txt new file mode 100644 index 00000000..cc6d8284 --- /dev/null +++ b/VERSION.txt @@ -0,0 +1 @@ +0.10.0-alpha diff --git a/build.clj b/build.clj index 7f0e10b4..35002930 100644 --- a/build.clj +++ b/build.clj @@ -1,11 +1,10 @@ (ns build - (:require [clojure.tools.build.api :as b] + (:require [clojure.string :as str] [org.corfield.build :as bb])) (def lib 'io.github.camsaul/toucan2) -;;; if you want a version of MAJOR.MINOR.COMMITS: -(def version (format "0.9.%s" (b/git-count-revs nil))) +(def version (str/trim (slurp "VERSION.txt"))) (def options {:lib lib, :version version}) diff --git a/toucan1/build.clj b/toucan1/build.clj index 73ff4cc3..f9a87b7e 100644 --- a/toucan1/build.clj +++ b/toucan1/build.clj @@ -1,11 +1,10 @@ (ns build - (:require [clojure.tools.build.api :as b] + (:require [clojure.string :as str] [org.corfield.build :as bb])) (def lib 'io.github.camsaul/toucan2-toucan1) -;;; if you want a version of MAJOR.MINOR.COMMITS: -(def version (format "0.9.%s" (b/git-count-revs nil))) +(def version (str/trim (slurp "../VERSION.txt"))) (def options {:lib lib, :version version})