Skip to content

Commit c1f6f5e

Browse files
committed
bump version and add build.yml
1 parent 3603e3c commit c1f6f5e

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>net.azisaba</groupId>
44
<artifactId>LunaChatPlus</artifactId>
5-
<version>3.0.19</version>
5+
<version>3.0.20</version>
66
<description>A powerfull chat channel plugin with IME (Kana-Kanji conversion) support</description>
77
<url>https://github.com/ucchyocean/LunaChat</url>
88

workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
workflow_dispatch:
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
name: Build
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup JDK
14+
uses: actions/setup-java@v2
15+
with:
16+
java-version: 8
17+
distribution: temurin
18+
cache: maven
19+
- name: Build
20+
run: mvn clean install
21+
- name: Retrieve API version
22+
run: 'echo "::set-output name=version::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"'
23+
id: retrieveApiVersion
24+
- name: Release new build
25+
uses: softprops/[email protected]
26+
with:
27+
tag_name: ${{ steps.retrieveApiVersion.outputs.version }}
28+
files: 'target/LunaChatPlus.jar'
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Cache
32+
uses: actions/[email protected]
33+
with:
34+
path: '~/.m2'
35+
key: maven
36+
- name: Upload a Build Artifact
37+
uses: actions/[email protected]
38+
with:
39+
name: LunaChatPlus
40+
path: 'target/LunaChatPlus.jar'

0 commit comments

Comments
 (0)