Updated: Gradle to build upon each commit and pull request

This commit is contained in:
Bram 2024-07-27 22:56:34 +09:00
parent 56f6a5060d
commit f75ecd85ae
No known key found for this signature in database
GPG key ID: 13E608068F40E3CC

View file

@ -1,8 +1,10 @@
name: Gradle Package
name: Build & Upload
on:
release:
types: [ created ]
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
@ -12,15 +14,12 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
distribution: 'temurin'
- name: Build with Gradle
run: chmod +x gradlew && ./gradlew build