diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b43ecb2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Build, Test, Release + +on: + push: + branches: [ "**" ] + paths-ignore: + - 'README.md' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'adopt' + + - name: Setup Gradle to support advanced caching + uses: gradle/gradle-build-action@v2.8.0 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build release with Gradle + run: ./gradlew assembleRelease + +# - name: Build release with Gradle +# run: ./gradlew publish