Skip to content

Added explicit name and parent in webfx.xml (so forks keep those sett… #19

Added explicit name and parent in webfx.xml (so forks keep those sett…

Added explicit name and parent in webfx.xml (so forks keep those sett… #19

Workflow file for this run

name: Deploy to Sonatype repository
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
env:
# WebFX requires at least JDK 13 due to javac bugs in prior versions (otherwise JDK 11+ should be enough in theory)
jdk-version: '19'
steps:
# Set up the JDK and Maven settings.xml
- name: Set up JDK ${{ env.jdk-version }}
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ env.jdk-version }}
server-id: sonatype-deploy
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
# Checkout this repository
- name: Checkout this repository
uses: actions/checkout@v3
# Build all modules and deploy their SNAPSHOT artifacts to sonatype repository
- name: Deploy this repository
run: mvn -B -P '!gwt-compile,!javafx-fatjar,!javapackager' deploy
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}