upped some versions #36
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
cache: 'maven' | |
- name: Create settings.xml | |
uses: s4u/maven-settings-action@v2 | |
with: | |
servers: '[{"id": "vpro-ossrh", "username": "vpro", "password": "${{secrets.SONATYPE_PASSWORD}}"}]' | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v3 | |
with: | |
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} | |
passphrase: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }} | |
- name: Build with Maven | |
run: mvn -B -fn | |
- name: Publish to codecov | |
uses: codecov/codecov-action@v2 | |
continue-on-error: true | |
- name: Publish Test Report | |
uses: scacap/action-surefire-report@v1 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Deploy with Maven | |
run: mvn -B -Pdeploy deploy -DskipTests=true -Dgpg.skip=false | |
if: ${{ github.event_name == 'push' }} | |