Merge pull request #22 from metosin/test-readme-examples-on-ci #56
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 | |
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 }}" |