Remove gradle deprecations, correctly cache asset gradle tasks, publish gradle plugin correctly, and build clean up #4
This file contains hidden or 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: "CI" | |
on: | |
push: | |
branches: | |
- '[4-9]+.[0-9]+.x' | |
pull_request: | |
jobs: | |
build: | |
name: 'Build' | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 17 ] | |
os: [ ubuntu-latest ] | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: "📥 Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "☕️ Setup JDK" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: liberica | |
java-version: ${{ matrix.java }} | |
- name: "🐘 Setup Gradle" | |
uses: gradle/actions/setup-gradle@v4 | |
- name: "Set up Node.js" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: "NPM dependencies" | |
run: > | |
npm install -g coffee-script | |
- name: "🔨 Build project" | |
run: > | |
./gradlew build | |
--continue --stacktrace | |
publish: | |
needs: [ build ] | |
if: github.repository_owner == 'wondrify' && github.event_name == 'push' | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: "📥 Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "☕️ Setup JDK" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: liberica | |
java-version: 17 | |
- name: "🐘 Setup Gradle" | |
uses: gradle/actions/setup-gradle@v4 | |
- name: "Set up Node.js" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'latest' | |
- name: "NPM dependencies" | |
run: > | |
npm install -g coffee-script | |
- name: "📤 Publish Snapshot" | |
run: > | |
./gradlew publish | |
env: | |
GRAILS_PUBLISH_RELEASE: 'false' | |
MAVEN_PUBLISH_URL: 'https://central.sonatype.com/repository/maven-snapshots/' | |
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} |