Skip to content

Updated GitHub Action versions #29

Updated GitHub Action versions

Updated GitHub Action versions #29

name: Build and Distribute
on:
push:
branches: [ develop ]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build project
run: ./gradlew clean build
- name: Push to master branch
if: ${{ success() }}
uses: ad-m/github-push-action@master
with:
branch: master
force: true
github_token: ${{ secrets.PAT }}