Skip to content

Commit

Permalink
copy from jsonista
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Jun 29, 2024
1 parent faa304c commit 53a43a2
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
name: release
name: Release

on:
release:
types: [published]
types:
- published # reacts to releases and prereleases, but not their drafts

jobs:
release:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: "8"
cache: maven
- name: Deploy to Clojars
run: lein deploy releases
env:
LEIN_PASSWORD: ${{ secrets.LEIN_PASSWORD }}
- uses: actions/checkout@v3
- name: "Setup Java 8"
uses: actions/[email protected]
with:
distribution: zulu
java-version: 8 # build releases with java 8 for maximum compatibility
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
lein: 2.9.4
- name: Run tests
run: lein do clean, all test, all check
- name: Build jar
run: lein jar
- name: Deploy to Clojars
run: lein deploy
env:
CLOJARS_USER: metosinci
CLOJARS_DEPLOY_TOKEN: "${{ secrets.CLOJARS_DEPLOY_TOKEN }}"

0 comments on commit 53a43a2

Please sign in to comment.