Skip to content

Commit

Permalink
Updated: Gradle to build upon each commit and pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed Jul 27, 2024
1 parent 56f6a50 commit f75ecd8
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Gradle Package
name: Build & Upload

on:
release:
types: [ created ]
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand All @@ -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
Expand Down

0 comments on commit f75ecd8

Please sign in to comment.