Skip to content

Bugfix: issue 239 (#597) #260

Bugfix: issue 239 (#597)

Bugfix: issue 239 (#597) #260

name: Release Drafter
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
update_release_draft:
needs: correct_repository
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# publish:
# if: "!contains(github.event.head_commit.message, '[version bump]')"
# runs-on: ubuntu-latest
# needs: [ test, sonar ]
# steps:
# - name: Checkout project
# uses: actions/checkout@v3
#
# - name: Setup Java
# uses: actions/setup-java@v3
# 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 \
# deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
#