Skip to content

Commit 161a2c6

Browse files
committed
build: add build and release pipeline
1 parent 4882f48 commit 161a2c6

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and publish
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up JDK
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '11'
18+
distribution: 'adopt'
19+
architecture: x64
20+
21+
- name: Grant execute permission for gradlew
22+
run: chmod +x gradlew
23+
24+
- name: Build and test
25+
run: ./gradlew check build
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v2
29+
if: startsWith(github.ref, 'refs/tags/')
30+
with:
31+
files: |
32+
./decoder/build/libs/java-midi-decoder-*.jar
33+
./app/build/libs/app.jar

0 commit comments

Comments
 (0)