Skip to content

Merge pull request #112 from DelineaXPM/snyk-upgrade-74e4f3b7959300a8… #33

Merge pull request #112 from DelineaXPM/snyk-upgrade-74e4f3b7959300a8…

Merge pull request #112 from DelineaXPM/snyk-upgrade-74e4f3b7959300a8… #33

Workflow file for this run

name: Deploy
on:
push:
# Publish `v1.2.3` tags as releases.
tags:
- v*
branches:
- main
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up JDK 11
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: 11
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase
distribution: 'temurin'
- name: Customize the Maven settings.xml
uses: whelk-io/maven-settings-xml-action@7c60eb95b2d5ec18f2e0e29f34c9ed69475e7a96 # v21
with:
servers: '[{ "id": "ossrh", "username": "${{ secrets.SONATYPE_USERNAME }}", "password": "${{ secrets.SONATYPE_PASSWORD }}" }, { "id": "ossrh", "username": "${{ secrets.SONATYPE_USERNAME }}", "password": "${{ secrets.SONATYPE_PASSWORD }}" }]'
- name: Configure the application
run: |
properties="src/main/resources/application.properties"
rm -f "${properties}"
echo "secret_server.tenant = ${{ secrets.TSS_TENANT }}" >> "${properties}"
echo "secret_server.oauth2.username = ${{ secrets.TSS_USERNAME }}" >> "${properties}"
echo "secret_server.oauth2.password = ${{ secrets.TSS_PASSWORD }}" >> "${properties}"
echo "secret.id = ${{ secrets.TSS_SECRET_ID }}" >> "${properties}"
- name: Deploy with Maven
run: |
mvn -P github -B -C -ff -ntp -U deploy -Dregistry=https://maven.pkg.github.com/delineaXPM -Dtoken=GH_TOKEN -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}