This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
chore: Bump version to 6.0.2-SNAPSHOT #42
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: ['11'] | |
env: | |
WORKSPACE: ${{ github.workspace }} | |
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 | |
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 == '11' | |
run: ./gradlew assemble | |
- name: Publish to repo.grails.org | |
if: success() && github.event_name == 'push' && matrix.java == '11' | |
env: | |
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
run: | | |
./gradlew publish |