-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 870 Bytes
/
main.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
name: Main
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Install Clojure Tools
uses: DeLaGuardo/setup-clojure@05cb4bfdf57855f122e75b71e45224775cdfc4a0 # 9.5
with:
cli: 1.11.1.1182
- name: Prepare Classpath
run: clojure -A:build:test -P
- name: Run Tests and Build Jar
run: clojure -T:build ci
- name: Deploy Jar
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: clojure -T:build deploy
env:
CLOJARS_USERNAME: fbeyer
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_DEPLOY_TOKEN }}