-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.02 KB
/
ci-cd.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
46
47
name: ci-cd
on:
push:
paths-ignore:
- "README.md"
- "CONTRIBUTING.md"
- "CHANGELOG.md"
- "LICENSE"
- ".gitignore"
jobs:
build:
name: Build
runs-on: ubuntu-20.04
env:
LEIN_ROOT: "true"
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install Clojure Tools
uses: DeLaGuardo/setup-clojure@5.1
with:
lein: 2.9.8
- name: Install clj-kondo
uses: DeLaGuardo/setup-clj-kondo@master
with:
version: '2020.04.05'
- name: Check formatting
run: lein cljfmt check
- name: Lint
run: clj-kondo --lint src && lein eastwood
- name: Deploy Jar to Clojars
if: contains(github.ref, 'refs/tags/')
run: lein deploy