Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jf17 authored Nov 9, 2023
1 parent ce36bc2 commit d019839
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,34 @@ on:
pull_request:
branches: [ "main" ]

permissions:
contents: write

jobs:
build:

build-gradle-project:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Run the Gradle package task
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: -b ci.gradle package
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run build with Gradle Wrapper
run: ./gradlew build

# permissions:
# contents: write

# jobs:
# build:

# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'temurin'
# - name: Change wrapper permissions
# run: chmod +x ./gradlew
# - name: Run the Gradle package task
# uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
# with:
# arguments: -b ci.gradle package

0 comments on commit d019839

Please sign in to comment.