Skip to content

Merge pull request #22 from metosin/test-readme-examples-on-ci #56

Merge pull request #22 from metosin/test-readme-examples-on-ci

Merge pull request #22 from metosin/test-readme-examples-on-ci #56

name: Release
on:
push:
branches:
- 'main'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Setup Java 11"
uses: actions/[email protected]
with:
java-version: 11
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
- name: Build jar
run: clojure -T:build jar
- name: Archive jar
uses: actions/upload-artifact@v3
with:
name: oksa.jar
path: target/oksa.jar
- name: Deploy to Clojars
run: clojure -X:deploy
env:
CLOJARS_USERNAME: ilmoraunio
CLOJARS_PASSWORD: "${{ secrets.CLOJARS_DEPLOY_TOKEN }}"