Skip to content

Commit e695036

Browse files
committed
added github deploy action
1 parent 304273b commit e695036

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Clojars Deployment
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*' # Enforce Semantic Versioning
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Setup CD Environment
17+
uses: yetanalytics/actions/setup-env@v0.0.4
18+
19+
- name: Extract version
20+
id: version
21+
run: echo version=${GITHUB_REF#refs\/tags\/v} >> $GITHUB_OUTPUT
22+
23+
- name: Build and deploy to Clojars
24+
uses: yetanalytics/actions/deploy-clojars@v0.0.4
25+
with:
26+
artifact-id: 're-codemirror'
27+
version: ${{ steps.version.outputs.version }}
28+
clojars-username: ${{ secrets.CLOJARS_USERNAME }}
29+
clojars-deploy-token: ${{ secrets.CLOJARS_DEPLOY_TOKEN }}
30+
src-dirs: '["src/cljs"]'

0 commit comments

Comments
 (0)