-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 952 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@v4
with:
distribution: 'zulu'
java-version: ${{ env.jdk-version }}
server-id: webfx-sonatype-deploy
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
# Checkout this repository
- name: Checkout this repository
uses: actions/checkout@v4
- name: Deploy webfx-maven-plugin
run: mvn -B deploy
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}