Skip to content

Commit

Permalink
build: automated the release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nergal-perm committed May 12, 2024
1 parent 7aac59b commit 16629d9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: mvn
name: Build & Test
on:
push:
branches:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: "Release"
on:
push:
tags:
- 'v*'

jobs:
tagged-release:
name: "Tagged Release"
runs-on: {{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
java: [17]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: java -version
- run: mvn -version
- run: mvn --errors --batch-mode clean package -DskipTests=true
- run: mv target/*-jar-with-dependencies.jar target/logic-checker.jar
- uses: ncipollo/release-action@v1
with:
artifacts: "release.tar.gz,target/logic-checker.jar"

0 comments on commit 16629d9

Please sign in to comment.