From 2dcb980ee1cc061d508843055f9fa4d1ca1ac3f8 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 30 Nov 2020 19:04:17 +0000 Subject: Release using github actions + update ASM --- .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/release.yml | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release.yml (limited to '.github') 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 @@ +name: Build +on: [push, pull_request] +jobs: + build: + strategy: + matrix: + java: [8-jdk, 11-jdk] + runs-on: ubuntu-20.04 + container: + image: openjdk:${{ matrix.java }} + options: --user root + steps: + - uses: actions/checkout@v1 + - uses: gradle/wrapper-validation-action@v1 + - 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 @@ +name: Release +on: [workflow_dispatch] # Manual trigger +jobs: + build: + runs-on: ubuntu-20.04 + container: + image: openjdk:11-jdk + options: --user root + steps: + - uses: actions/checkout@v1 + - uses: gradle/wrapper-validation-action@v1 + - run: ./gradlew checkVersion build publish --stacktrace + env: + MAVEN_URL: ${{ secrets.MAVEN_URL }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} \ No newline at end of file -- cgit v1.2.3