Fix setup-clojure workflow action #32
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 Packages | |
on: [push] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo:6 | |
ports: | |
- 27017:27017 | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetch tags | |
run: git fetch --tags origin | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
cache: 'maven' | |
cache-dependency-path: '**/deps.edn' | |
- uses: extractions/setup-just@v2 | |
- uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
- name: Setup Kmono | |
uses: kepler16/setup-kmono@v1 | |
with: | |
version: 4.7.3 | |
- name: Test | |
run: | | |
just test | |
- name: Build | |
run: | | |
just build | |
- name: Release | |
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }} | |
env: | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
run: | | |
just release |