Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
working on #4
  • Loading branch information
bsorrentino committed Aug 2, 2024
1 parent 1862707 commit a132fb4
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path

name: Deploy New Version

on:
Expand All @@ -10,21 +7,42 @@ on:

jobs:
deploy-jdk8:
runs-on: ubuntu-latest
name: Java 8 deploy
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '8'
java-package: jdk
- name: GPG Setup
env:
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./gpg-setup.sh
- name: Deploy to OSS Sonatype
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OSS_SONATYPE_TOKEN: ${{ secrets.OSS_SONATYPE_TOKEN }}
run: mvn -B source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}

deploy-jdk17:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '17' ]
name: Java ${{ matrix.Java }} deploy
name: Java 17 deploy
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Set up JDK ${{ matrix.java }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: ${{ matrix.java }}
java-version: '17'
java-package: jdk
- name: GPG Setup
env:
Expand Down

0 comments on commit a132fb4

Please sign in to comment.