Skip to content

4.x Update

4.x Update #62

Workflow file for this run

name: Test
concurrency: ci-${{ github.ref }}
on: [workflow_dispatch, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Setup Java
run: |
echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: fregante/setup-git-user@v2
- uses: actions/cache/restore@v3
with:
path: |
**/.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- uses: gradle/gradle-build-action@v2
name: Setup Gradle
with:
cache-read-only: true
gradle-home-cache-cleanup: true
- name: Build
run: |
./gradlew checkLicenses build
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Publish
run: |
./gradlew publish
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
- name: Archive publishable artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: build/repo