Bump org.apache.maven.plugins:maven-compiler-plugin (#735) #495
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
env: | |
JAVA_TOOL_OPTIONS: >- | |
-XX:TieredStopAtLevel=1 | |
-XX:+UseParallelGC | |
-Dstyle.color=always | |
-Djansi.force=true | |
jobs: | |
build: | |
name: Maven build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: temurin | |
- name: Build with Maven | |
run: .github/scripts/build.sh | |
deploy: | |
name: Maven deploy | |
runs-on: ubuntu-20.04 | |
needs: build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: temurin | |
- name: Install GPG key | |
run: |- | |
gpg --batch --import-options import-show --import << EOF | |
${{ secrets.GPG_KEY }} | |
EOF | |
- name: Deploy with Maven | |
run: .github/scripts/deploy.sh | |
env: | |
OSSRH_USER: ${{ secrets.OSSRH_USER }} | |
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} | |
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Delete GPG secret key | |
if: ${{ always() }} | |
run: gpg --batch --yes --delete-secret-keys ${{ secrets.GPG_KEY_NAME }} || true | |
- name: Delete GPG public key | |
if: ${{ always() }} | |
run: gpg --batch --yes --delete-keys ${{ secrets.GPG_KEY_NAME }} |