-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (32 loc) · 926 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
release:
types:
- published # reacts to releases and pre-releases, but not their drafts
jobs:
build-and-release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java 8
uses: actions/[email protected]
with:
java-version: 8
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
- run: npm ci
- name: Run the CLJ and CLJS tests
run: ./bin/kaocha
- name: Build the jar and update pom.xml's version
run: clojure -X:jar
- name: Deploy the jar and pom files to Clojars
run: clojure -X:deploy
env:
CLOJARS_USERNAME: metosinci
CLOJARS_PASSWORD: "${{ secrets.CLOJARS_DEPLOY_TOKEN }}"