-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d6b432b
commit 215b87d
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
test-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get an env | ||
uses: yetanalytics/action-setup-env@v1 | ||
|
||
- name: Extract version | ||
id: version | ||
run: echo version=${GITHUB_REF#refs\/tags\/v} >> $GITHUB_OUTPUT | ||
|
||
- name: Build JAR | ||
run: make build VERSION=${{ steps.version.output.version }} GITHUB_SHA=${{ github.sha }} | ||
|
||
- name: Deploy to Clojars | ||
run: make deploy VERSION=${{ steps.version.output.version }} | ||
env: | ||
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | ||
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_DEPLOY_TOKEN }} |