-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.04 KB
/
ci.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
name: CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Prepare java
uses: actions/setup-java@v2
with:
distribution: 'zulu' # https://github.com/actions/setup-java/blob/main/README.md#Supported-distributions
java-version: '14'
java-package: jdk # optional (jdk or jre) - defaults to jdk
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@3.5
with:
cli: 1.11.1.1413 # Clojure CLI based on tools.deps
clj-kondo: 2022.05.31 # Clj-kondo
cljfmt: 0.10.2 # cljfmt
- name: deploy to clojars
if: success()
env:
CLOJARS_USERNAME: ${{ secrets.ReleaseUsername }}
CLOJARS_PASSWORD: ${{ secrets.ReleasePassword }}
run: |
git config --global user.email "ci@pinkgorilla.org"
git config --global user.name "CI/CD"
clojure -T:build jar
clojure -T:build deploy