Skip to content

Commit 7adf21b

Browse files
kitallisscimetfoo
andauthored
Publish to Clojars upon publishing releases on Github (#65)
Co-authored-by: Murtaza Akbari <murtazasakbari@gmail.com>
1 parent cd1c3a2 commit 7adf21b

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
java: '14'
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Setup Java
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: ${{ java }}
18+
- name: Setup Clojure
19+
uses: DeLaGuardo/setup-clojure@master
20+
with:
21+
tools-deps: '1.10.1.754'
22+
- name: Publish to Clojars
23+
env:
24+
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
25+
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_DEPLOY_TOKEN }}
26+
run: clojure -X:jar :jar honeysql-postgres.jar && clojure -X:deploy

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PostgreSQL extensions for the widely used [honeysql](https://github.com/jkk/hone
44

55
This library aims to extend the features of honeysql to support postgres specific SQL clauses and some basic SQL DDL in addition to the ones supported by the parent library. This keeps honeysql clean and single-purpose, any vendor-specific additions can simply be separate libraries that work on top.
66

7+
78
## Index
89

910
- [Usage](#usage)
@@ -18,8 +19,6 @@ This library aims to extend the features of honeysql to support postgres specifi
1819
- [create table](#create-table)
1920
- [drop table](#drop-table)
2021
- [alter table](#alter-table)
21-
- [create extension](#create-extension)
22-
- [drop extension](#drop-extension)
2322
- [pattern matching](#pattern-matching)
2423
- [except](#except)
2524
- [SQL functions](#sql-functions)

deps.edn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
:main-opts ["-m" "cljs-test-runner.main"]}
1111
:readme {:extra-deps {seancorfield/readme {:mvn/version "1.0.16"}}
1212
:main-opts ["-m" "seancorfield.readme"]}
13+
:deploy {:replace-deps {slipset/deps-deploy {:mvn/version "0.1.5"}}
14+
:exec-fn deps-deploy.deps-deploy/deploy
15+
:exec-args {:installer :local :artifact "honeysql-postgres.jar"}}
1316
:jar {:replace-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
1417
:exec-fn hf.depstar/jar
15-
:exec-args {}}}}
18+
:exec-args {}}}}

0 commit comments

Comments
 (0)