Skip to content

Version 0.3.0

Version 0.3.0 #2

name: Test & Release
on:
push:
tags:
- "v*"
jobs:
test-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v10
- name: Use the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@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: Build devShell
run: nix build .#devShells.x86_64-linux.default
- name: Run tests and build jar
run: nix develop -c clojure -T:build ci :snapshot false
- name: Deploy release jar
run: nix develop -c clojure -T:build deploy :snapshot false
env:
CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}