Change up how mappings are handled to allow custom mappings in Single… #4
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
{ | |
"jobs": { | |
"build": { | |
"runs-on": "ubuntu-22.04", | |
"steps": [ | |
{ | |
"name": "Setup Java", | |
"run": "echo \"JAVA_HOME=$JAVA_HOME_21_X64\" >> \"$GITHUB_ENV\"" | |
}, | |
{ | |
"with": { | |
"fetch-depth": "0", | |
"persist-credentials": "false" | |
}, | |
"name": "Checkout", | |
"uses": "actions/checkout@v4" | |
}, | |
{ | |
"name": "Validate Gradle Wrapper", | |
"uses": "gradle/actions/wrapper-validation@v3" | |
}, | |
{ | |
"with": { | |
"path": "**/.gradle/loom-cache\n**/.gradle/quilt-loom-cache", | |
"key": "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}", | |
"restore-keys": "${{ runner.os }}-gradle-" | |
}, | |
"name": "Cache", | |
"uses": "actions/cache@v4" | |
}, | |
{ | |
"with": { | |
"gradle-home-cache-cleanup": true | |
}, | |
"name": "Setup Gradle", | |
"uses": "gradle/actions/setup-gradle@v3" | |
}, | |
{ | |
"name": "Build", | |
"run": "./gradlew build", | |
"id": "build", | |
"env": { | |
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}", | |
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}", | |
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}", | |
"SNAPSHOT_MAVEN_PASSWORD": "${{ secrets.SNAPSHOT_MAVEN_PASSWORD }}", | |
"SNAPSHOT_MAVEN_USER": "github", | |
"SNAPSHOT_MAVEN_URL": "https://maven.lukebemish.dev/snapshots/" | |
} | |
}, | |
{ | |
"name": "Publish", | |
"run": "./gradlew publish", | |
"id": "publish", | |
"env": { | |
"BUILD_CACHE_PASSWORD": "${{ secrets.BUILD_CACHE_PASSWORD }}", | |
"BUILD_CACHE_USER": "${{ secrets.BUILD_CACHE_USER }}", | |
"BUILD_CACHE_URL": "${{ secrets.BUILD_CACHE_URL }}", | |
"SNAPSHOT_MAVEN_PASSWORD": "${{ secrets.SNAPSHOT_MAVEN_PASSWORD }}", | |
"SNAPSHOT_MAVEN_USER": "github", | |
"SNAPSHOT_MAVEN_URL": "https://maven.lukebemish.dev/snapshots/" | |
} | |
} | |
] | |
} | |
}, | |
"name": "Snapshot", | |
"concurrency": "ci-${{ github.ref }}", | |
"on": { | |
"workflow_dispatch": { | |
}, | |
"push": { | |
"branches": [ | |
"main" | |
] | |
} | |
} | |
} |