add dependabot.yml #87
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: Maven | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Test with Java ${{ matrix.jdk }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: ['8', '11', '17', '21'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.jdk }} | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
# deploy: | |
# name: Deploy Artifact | |
# needs: build | |
# continue-on-error: true | |
# if: ${{ needs.build.result == 'success' && github.ref == 'refs/heads/main' }} | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Set up JDK 8 | |
# uses: actions/setup-java@v3 | |
# with: | |
# distribution: temurin | |
# java-version: 8 | |
# cache: maven | |
# #server-id: github | |
# server-id: ossrh | |
# server-username: MAVEN_USERNAME | |
# server-password: MAVEN_PASSWORD | |
# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | |
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | |
# - name: Maven Deploy (GitHub Packages) | |
# run: mvn deploy -Prelease,githubPackages -DskipTests=true | |
# with: | |
# server-id: github | |
# env: | |
# GITHUB_TOKEN: ${{ github.token }} | |
# - name: Maven Deploy (Maven Central) | |
# run: mvn deploy -Prelease -DskipTests=true | |
# env: | |
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |