-
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
09093a1
commit 68b709a
Showing
3 changed files
with
106 additions
and
12 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,45 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published # reacts to releases and pre-releases, but not their drafts | ||
|
||
jobs: | ||
|
||
build-and-release: | ||
|
||
name: Release | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Java 8 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 8 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/hydrogen | ||
|
||
- name: Setup Clojure | ||
uses: DeLaGuardo/setup-clojure@master | ||
with: | ||
cli: latest | ||
|
||
- run: npm ci | ||
|
||
- name: Run the CLJ and CLJS tests | ||
run: ./bin/kaocha | ||
|
||
- name: Build the jar and update pom.xml's version | ||
run: clojure -X:depstar | ||
|
||
- name: Deploy the jar and pom files to Clojars | ||
run: clojure -X:deploy | ||
env: | ||
CLOJARS_USERNAME: metosinci | ||
CLOJARS_PASSWORD: "${{ secrets.CLOJARS_DEPLOY_TOKEN }}" |
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
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,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>jar</packaging> | ||
<groupId>fi.metosin</groupId> | ||
<artifactId>signaali</artifactId> | ||
<version>0.1.0</version> | ||
<name>signaali</name> | ||
<description>Small, portable & flexible implementation of signals</description> | ||
<inceptionYear>2023</inceptionYear> | ||
<licenses> | ||
<license> | ||
<name>EPL-2.0</name> | ||
<url>https://opensource.org/license/EPL-2.0</url> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>https://github.com/metosin/signaali</url> | ||
<connection>scm:git:git://github.com/metosin/signaali.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/metosin/signaali.git</developerConnection> | ||
<tag>main</tag> | ||
</scm> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.clojure</groupId> | ||
<artifactId>clojure</artifactId> | ||
<version>1.10.3</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
</build> | ||
<repositories> | ||
<repository> | ||
<id>clojars</id> | ||
<url>https://repo.clojars.org/</url> | ||
</repository> | ||
</repositories> | ||
</project> |