This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
Merge pull request #983 from SE-TINF22B6/dependabot/maven/io.jsonwebt… #2045
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: Java CI with Maven | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
env: | |
DATABASE_URL: ${{ github.event_name != 'pull_request' && secrets.DATABASE_URL || 'jdbc:postgresql://hh-pgsql-public.ebi.ac.uk:5432/pfmegrnargs' }} | |
DATABASE_USERNAME: ${{ github.event_name != 'pull_request' && secrets.DATABASE_USERNAME || 'reader' }} | |
DATABASE_PASSWORD: ${{ github.event_name != 'pull_request' && secrets.DATABASE_PASSWORD || 'NWDMCE5xdipIjRrp' }} | |
run: mvn -B package --file pom.xml | |
- name: Copy Artifact | |
run: mkdir staging && cp -p target/*.jar staging | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'server' | |
path: './staging' | |
- name: Update dependency graph | |
uses: advanced-security/maven-dependency-submission-action@v3 | |
with: | |
ignore-maven-wrapper: true |