-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (33 loc) · 961 Bytes
/
Copy pathrelease.yml
File metadata and controls
46 lines (33 loc) · 961 Bytes
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
46
name: Release
on:
release:
types:
- published # reacts to releases and pre-releases, but not their drafts
jobs:
test-and-release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java 8
uses: actions/setup-java@v4.7.0
with:
distribution: "temurin"
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: green-coder
CLOJARS_PASSWORD: "${{ secrets.CLOJARS_DEPLOY_TOKEN }}"