aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/release.yml52
-rw-r--r--README.md9
-rw-r--r--build.edn27
3 files changed, 86 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..a6cb469
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,52 @@
+name: Tag and Release
+on: workflow_dispatch
+
+jobs:
+ tag-and-release:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ # NOTE: Fetch all for counting commits
+ fetch-depth: 0
+ - uses: actions/setup-java@v3
+ with:
+ distribution: 'adopt'
+ java-version: 21
+ - uses: DeLaGuardo/setup-clojure@13.4
+ with:
+ cli: 1.10.1.693
+
+ - name: Show versions
+ run: |
+ java -version
+ clojure --version
+
+ - name: deploy to clojars
+ # NOTE: Specify ID to refer outputs from other steps
+ id: deploy
+ run: |
+ clojure -T:build deploy
+ env:
+ CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
+ CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}
+
+ - uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ # NOTE: Refer outputs
+ tag_name: ${{ steps.deploy.outputs.version }}
+ release_name: ${{ steps.deploy.outputs.version }}
+ body: released
+ draft: false
+ prerelease: false
+
+ - run: |
+ clojure -T:build update-documents
+ git diff
+ git config --global user.email "github-actions@example.com"
+ git config --global user.name "github-actions"
+ git add -A
+ git commit -m "Update for release"
+ git push \ No newline at end of file
diff --git a/README.md b/README.md
index 7895bc9..2a4d6b9 100644
--- a/README.md
+++ b/README.md
@@ -434,9 +434,9 @@ If you liked this library, you may also like:
## Change log
-#### 2025-05-13 v0.2.?? [diff](https://github.com/ivarref/yoltq/compare/v0.2.64...HEAD)
+#### [Unreleased]
Added support for specifying `tx-report-queue` as a keyword in `init!`. Yoltq will
-then not grab the datomic report queue, but use the one provided:
+then not grab the datomic report queue, but use the one provided:
```clojure
(require '[com.github.ivarref.yoltq :as yq])
@@ -686,8 +686,13 @@ Added `:valid-payload?` option for queue consumers.
Improved error reporting.
#### 2021-09-24 v0.2.33
+
First publicly announced release.
+## Making a new release
+
+Go to https://github.com/ivarref/yoltq/actions/workflows/release.yml and press `Run workflow`.
+
## License
Copyright © 2021-2022 Ivar Refsdal
diff --git a/build.edn b/build.edn
new file mode 100644
index 0000000..b58a819
--- /dev/null
+++ b/build.edn
@@ -0,0 +1,27 @@
+{:lib com.github.ivarref/yoltq
+
+ :version "v0.2.{{git/commit-count}}"
+
+ :github-actions? true
+
+ :scm {:connection "scm:git:git://github.com/ivarref/yoltq.git"
+ :developerConnection "scm:git:ssh://git@github.com/ivarref/yoltq.git"
+ :url "https://github.com/ivarref/yoltq"}
+
+ :documents [{:file "README.md"
+ :match-exactly "#### [Unreleased]"
+ :action :append-after
+ :text "\n#### [{{version}}] - {{now/yyyy}}-{{now/mm}}-{{now/dd}}"}
+ {:file "README.md"
+ :match-exactly "com.github.ivarref/yoltq {:git/tag"
+ :action :replace
+ :keep-indent? true
+ :text "com.github.ivarref/yoltq {:git/tag \"{{version}}\" :git/sha \"{{git/head-long-sha}}\"}"}
+ {:file "README.md"
+ :match-exactly "com.github.ivarref/yoltq {:mvn/version"
+ :action :replace
+ :keep-indent? true
+ :text "com.github.ivarref/yoltq {:mvn/version \"{{version}}\"}"}]
+
+ :licenses [{:name "Eclipse Public License - v 2.0"
+ :url "https://www.eclipse.org/legal/epl-2.0/"}]} \ No newline at end of file