summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml15
-rw-r--r--.github/workflows/release.yml16
2 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..5aa1cd48
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,15 @@
1name: Build
2on: [push, pull_request]
3jobs:
4 build:
5 strategy:
6 matrix:
7 java: [8-jdk, 11-jdk]
8 runs-on: ubuntu-20.04
9 container:
10 image: openjdk:${{ matrix.java }}
11 options: --user root
12 steps:
13 - uses: actions/checkout@v1
14 - uses: gradle/wrapper-validation-action@v1
15 - run: ./gradlew build --stacktrace
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..8c221f6e
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,16 @@
1name: Release
2on: [workflow_dispatch] # Manual trigger
3jobs:
4 build:
5 runs-on: ubuntu-20.04
6 container:
7 image: openjdk:11-jdk
8 options: --user root
9 steps:
10 - uses: actions/checkout@v1
11 - uses: gradle/wrapper-validation-action@v1
12 - run: ./gradlew checkVersion build publish --stacktrace
13 env:
14 MAVEN_URL: ${{ secrets.MAVEN_URL }}
15 MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
16 MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} \ No newline at end of file