Merge pull request #21 from pmonks/dev #7
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: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: clojars | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Make sure we get the full history, or else the version number gets screwed up | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
- uses: DeLaGuardo/setup-clojure@12.1 | |
with: | |
cli: latest | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.clojure | |
~/.cpcache | |
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
- name: Build JAR and deploy to Clojars | |
env: | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
run: clojure -Srepro -J-Dclojure.main.report=stderr -T:build deploy |