Modify recipient specs to avoid blank strings #18
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: ci-cd | |
on: | |
push: | |
paths-ignore: | |
- "README.md" | |
- "CONTRIBUTING.md" | |
- "CHANGELOG.md" | |
- "LICENSE" | |
- ".gitignore" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
env: | |
LEIN_ROOT: "true" | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install Clojure Tools | |
uses: DeLaGuardo/setup-clojure@5.1 | |
with: | |
lein: 2.9.8 | |
- name: Install clj-kondo | |
uses: DeLaGuardo/setup-clj-kondo@master | |
with: | |
version: '2022.10.05' | |
- name: Check formatting | |
run: lein cljfmt check | |
- name: Lint | |
run: clj-kondo --lint src && if [ -d test ]; then clj-kondo --lint test; fi && lein eastwood | |
- name: Test | |
run: lein test :all | |
- name: Deploy Jar to Clojars | |
if: contains(github.ref, 'refs/tags/') | |
run: lein deploy |