Skip to content

Commit

Permalink
updated versions of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wolpi committed Sep 8, 2024
1 parent b87c60f commit 636ee21
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,35 @@ name: Java CI with Gradle

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Output event
env:
EVENT: ${{ github.event_name }}
run: echo github.event_name $EVENT.
- name: Publish package
if: ${{ github.event_name == 'push' }}
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "adopt"
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Output event
env:
EVENT: ${{ github.event_name }}
run: echo github.event_name $EVENT.
- name: Publish package
if: ${{ github.event_name == 'push' }}
uses: gradle/gradle-build-action@v3
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 636ee21

Please sign in to comment.