Skip to content

Configure OSX and Windows builds #13

Configure OSX and Windows builds

Configure OSX and Windows builds #13

Workflow file for this run

name: Assembly and release
on:
workflow_call:
secrets:
SIGNING_KEY_ID:
required: true
SIGNING_PASSWORD:
required: true
SIGNING_SECRET_FILE:
required: true
RELEASER_NEXUS2_USERNAME:
required: true
RELEASER_NEXUS2_PASSWORD:
required: true
push:
branches-ignore:
- main
permissions:
id-token: write
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Assembly
uses: gradle/gradle-build-action@v2
with:
arguments: assemble sourcesJar javadocJar --parallel --stacktrace
- name: Sign & publish to Maven Central
uses: gradle/gradle-build-action@v2
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_FILE: ${{ secrets.SIGNING_SECRET_FILE }}
RELEASER_NEXUS2_USERNAME: ${{ secrets.RELEASER_NEXUS2_USERNAME }}
RELEASER_NEXUS2_PASSWORD: ${{ secrets.RELEASER_NEXUS2_PASSWORD }}
with:
arguments: assemble sourcesJar javadocJar signAllPublications publishJvmArtifacts publishLinuxArtifacts publishJsArtifacts --stacktrace
windows-release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Assembly
uses: gradle/gradle-build-action@v2
with:
arguments: assemble sourcesJar javadocJar --parallel --stacktrace
- name: Sign & publish to Maven Central
uses: gradle/gradle-build-action@v2
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_FILE: ${{ secrets.SIGNING_SECRET_FILE }}
RELEASER_NEXUS2_USERNAME: ${{ secrets.RELEASER_NEXUS2_USERNAME }}
RELEASER_NEXUS2_PASSWORD: ${{ secrets.RELEASER_NEXUS2_PASSWORD }}
with:
arguments: assemble sourcesJar javadocJar publishWindowsArtifacts publish --stacktrace
macos-release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Assembly
uses: gradle/gradle-build-action@v2
with:
arguments: assemble sourcesJar javadocJar --parallel --stacktrace
- name: Sign & publish to Maven Central
uses: gradle/gradle-build-action@v2
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_FILE: ${{ secrets.SIGNING_SECRET_FILE }}
RELEASER_NEXUS2_USERNAME: ${{ secrets.RELEASER_NEXUS2_USERNAME }}
RELEASER_NEXUS2_PASSWORD: ${{ secrets.RELEASER_NEXUS2_PASSWORD }}
with:
arguments: assemble sourcesJar javadocJar publishOSXArtifacts publish --stacktrace