-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.03 KB
/
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
41
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Clojure dependencies
uses: actions/cache@v4
with:
key: clj-${{ github.repository }}-${{ hashFiles('**/deps.edn') }}
restore-keys: clj-${{ github.repository }}-
path: |
~/.gitlibs
~/.m2/repository
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Cache Nix Store
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build devShell
run: nix build .#devShells.x86_64-linux.default
- name: Run tests
run: nix develop -c bin/kaocha
- name: Deploy release jar
run: |
nix develop -c clojure -T:build jar :snapshot false
nix develop -c clojure -T:build deploy :snapshot false
env:
CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}