Skip to content

Updated mustache templates (#704) #77

Updated mustache templates (#704)

Updated mustache templates (#704) #77

Workflow file for this run

name: Snapshot
on:
push:
branches:
- main
workflow_dispatch:
jobs:
correct_repository:
runs-on: ubuntu-latest
steps:
- name: fail on fork
if: github.repository_owner != 'Backbase'
run: exit 1
publish:
if: "!contains(github.event.head_commit.message, '[version bump]')"
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Build and Publish SNAPSHOT
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-DskipTests=true \
-Psonatype-deploy \
deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}