Fix GH Actions again #40
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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
environment: Deployment | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Java & Clojure | |
uses: ./.github/actions/setup-clojure | |
with: | |
cache-key: deploy | |
- name: Build JAR | |
run: clojure -T:build build | |
env: | |
GITHUB_SHA: ${{ env.GITHUB_SHA }} | |
- name: Deploy to Clojars | |
run: clojure -T:build deploy | |
env: | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} |