-
-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (38 loc) · 1.08 KB
/
test-and-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
name: Release Version
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Install Planck
run: sudo add-apt-repository -y ppa:mfikes/planck && sudo apt-get update -y && sudo apt-get install -y planck
- name: Clojure CLI
uses: DeLaGuardo/setup-clojure@master
with:
cli: '1.11.1.1413'
- name: Cache All The Things
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.clojure
~/.cpcache
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }}
- name: Run Tests
run: clojure -T:build ci :cljs true :snapshot false
- name: Deploy Release
run: clojure -T:build deploy :snapshot false
env:
CLOJARS_PASSWORD: ${{secrets.DEPLOY_TOKEN}}
CLOJARS_USERNAME: ${{secrets.DEPLOY_USERNAME}}