Skip to content

Commit 67dc4d0

Browse files
committed
prepare v0.0.1 release and add tag-driven release workflow
1 parent f4f8096 commit 67dc4d0

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up JDK
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: '11'
25+
26+
- name: Validate and build
27+
run: ./gradlew --no-daemon clean build
28+
29+
- name: Create GitHub release and upload jars
30+
uses: softprops/action-gh-release@v2
31+
with:
32+
generate_release_notes: true
33+
files: |
34+
modules/deserializer/build/libs/*.jar
35+
modules/lua2java/build/libs/*.jar
36+
modules/groovy2java/build/libs/*.jar
37+
modules/toml2java/build/libs/*.jar
38+
modules/json2java/build/libs/*.jar
39+
modules/xml2java/build/libs/*.jar
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ subprojects {
22
apply plugin: 'java-library'
33

44
group = 'org.msuo'
5-
version = '0.0.1-SNAPSHOT'
5+
version = '0.0.1'
66

77
repositories {
88
mavenCentral()
@@ -22,4 +22,8 @@ subprojects {
2222
tasks.withType(Test).configureEach {
2323
useJUnitPlatform()
2424
}
25+
26+
tasks.withType(JavaCompile).configureEach {
27+
options.release = 11
28+
}
2529
}

0 commit comments

Comments
 (0)