-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
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
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 }}" |