This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
Merge pull request #33 from jdaugherty/7.0.x #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: | |
push: | |
branches: | |
- '[1-9]+.[0-9]+.x' | |
- master | |
pull_request: | |
branches: | |
- '[1-9]+.[0-9]+.x' | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: ['17'] | |
env: | |
WORKSPACE: ${{ github.workspace }} | |
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 | |
MAVEN_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
MAVEN_PUBLISH_URL: 'https://repo.grails.org/grails/libs-snapshots-local' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Run Assemble | |
if: success() && github.event_name == 'push' && matrix.java == '17' | |
run: ./gradlew assemble | |
- name: Publish to repo.grails.org | |
if: success() && github.event_name == 'push' && matrix.java == '17' | |
run: | | |
./gradlew publish |