Skip to content

Commit

Permalink
bump version and add build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Apr 23, 2022
1 parent 3603e3c commit c1f6f5e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.azisaba</groupId>
<artifactId>LunaChatPlus</artifactId>
<version>3.0.19</version>
<version>3.0.20</version>
<description>A powerfull chat channel plugin with IME (Kana-Kanji conversion) support</description>
<url>https://github.com/ucchyocean/LunaChat</url>

Expand Down
40 changes: 40 additions & 0 deletions workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: 8
distribution: temurin
cache: maven
- name: Build
run: mvn clean install
- name: Retrieve API version
run: 'echo "::set-output name=version::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"'
id: retrieveApiVersion
- name: Release new build
uses: softprops/[email protected]
with:
tag_name: ${{ steps.retrieveApiVersion.outputs.version }}
files: 'target/LunaChatPlus.jar'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache
uses: actions/[email protected]
with:
path: '~/.m2'
key: maven
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: LunaChatPlus
path: 'target/LunaChatPlus.jar'

0 comments on commit c1f6f5e

Please sign in to comment.