WIP: Rewrite #181
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: Publish kmono 👘 | |
on: [push] | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# - name: Cache clojure dependencies | |
# uses: actions/cache@v3 | |
# with: | |
# path: | | |
# ~/.m2/repository | |
# ~/.gitlibs | |
# ~/.deps.clj | |
# key: cljdeps-${{ hashFiles('deps.edn') }} | |
# restore-keys: cljdeps- | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '22' | |
distribution: 'graalvm' | |
- uses: extractions/setup-just@v1 | |
- uses: DeLaGuardo/[email protected] | |
with: | |
cli: latest | |
- name: Build | |
run: | | |
just build | |
- name: Build CLI | |
run: | | |
just build-cli | |
cp target/bin/kmono /usr/local/bin/kmono | |
- name: Test | |
run: | | |
just test | |
# - name: Release | |
# env: | |
# CLOJARS_USERNAME: infrastructure-kepler16-com | |
# CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
# run: | | |
# just release \ | |
# ":snapshot?" ${{ github.ref_name != 'master' }} \ | |
# ":create-tags?" ${{ github.ref_name == 'master' }} | |