Skip to content

Commit

Permalink
Add CD
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Jan 18, 2024
1 parent d6b432b commit 215b87d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cd.yml
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 }}

0 comments on commit 215b87d

Please sign in to comment.