Skip to content

Add build and publish actions. Fix artifact id name. Add java docs and sources to publication, also handle snapshot versions. #3

Add build and publish actions. Fix artifact id name. Add java docs and sources to publication, also handle snapshot versions.

Add build and publish actions. Fix artifact id name. Add java docs and sources to publication, also handle snapshot versions. #3

Workflow file for this run

name: craftinglib-build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: "Build with JDK${{ matrix.jdk }}"
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [ 8, 11, 17, 21 ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean test clean build