Skip to content

Publish to Maven Central #13

Publish to Maven Central

Publish to Maven Central #13

Workflow file for this run

name: Build and Push Packages
on:
push:
branches:
- 'main'
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: amd64
qemu_arch: x86_64
tag_suffix: ''
latest_tag: latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build native image with Gradle
run: ./gradlew build