Version 2.3.1 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |