Skip to content

Commit ae0c043

Browse files
authored
Merge pull request #3 from yetanalytics/deploy_action
add clojars deploy action
2 parents 304273b + a3789a7 commit ae0c043

4 files changed

Lines changed: 105 additions & 1 deletion

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"]'

.github/workflows/deps.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deps
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
jobs:
8+
deps:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 10
11+
steps:
12+
- name: Checkout project
13+
uses: actions/checkout@v3
14+
15+
- name: Setup CI Environment
16+
uses: yetanalytics/action-setup-env@v1
17+
18+
- name: Cache Deps
19+
uses: actions/cache@v3
20+
with:
21+
path: |
22+
~/.m2
23+
~/.gitlibs
24+
key: ${{ runner.os }}-deps-${{ hashFiles('deps.edn') }}
25+
restore-keys: |
26+
${{ runner.os }}-deps-
27+
28+
- name: Submit Dependency Snapshot
29+
uses: advanced-security/maven-dependency-submission-action@v3

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pom.xml
21
pom.xml.asc
32
*.jar
43
*.class

pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<packaging>jar</packaging>
5+
<groupId>re-codemirror</groupId>
6+
<artifactId>re-codemirror</artifactId>
7+
<version>0.0.1</version>
8+
<name>re-codemirror</name>
9+
<dependencies>
10+
<dependency>
11+
<groupId>org.clojure</groupId>
12+
<artifactId>clojure</artifactId>
13+
<version>1.11.1</version>
14+
</dependency>
15+
<dependency>
16+
<groupId>org.clojure</groupId>
17+
<artifactId>clojurescript</artifactId>
18+
<version>1.10.773</version>
19+
</dependency>
20+
<dependency>
21+
<groupId>reagent</groupId>
22+
<artifactId>reagent</artifactId>
23+
<version>1.1.0</version>
24+
</dependency>
25+
<dependency>
26+
<groupId>cljsjs</groupId>
27+
<artifactId>codemirror</artifactId>
28+
<version>5.44.0-1</version>
29+
</dependency>
30+
</dependencies>
31+
<build>
32+
<sourceDirectory>src/cljs</sourceDirectory>
33+
</build>
34+
<repositories>
35+
<repository>
36+
<id>clojars</id>
37+
<url>https://repo.clojars.org/</url>
38+
</repository>
39+
</repositories>
40+
<licenses>
41+
<license>
42+
<name>Apache-2.0</name>
43+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
44+
</license>
45+
</licenses>
46+
</project>

0 commit comments

Comments
 (0)