Skip to content

Commit 84f0e47

Browse files
committed
add release workflow
1 parent df910dc commit 84f0e47

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up JDK
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: 'temurin'
21+
java-version: '21'
22+
cache: 'maven'
23+
24+
- name: Build
25+
run: mvn -B clean package
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v2
29+
with:
30+
files: |
31+
target/*.jar

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>app</groupId>
55
<artifactId>sort-viz</artifactId>
6-
<version>1.0.0</version>
6+
<version>0.0.1</version>
77
<properties>
88
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
99
<maven.compiler.release>21</maven.compiler.release>

0 commit comments

Comments
 (0)