Skip to content

Merge pull request #24 from IsyFact/feature/IFS-3851-antora-komponente #42

Merge pull request #24 from IsyFact/feature/IFS-3851-antora-komponente

Merge pull request #24 from IsyFact/feature/IFS-3851-antora-komponente #42

Workflow file for this run

# Maven Build: Compile, Test, SonarCloudScan
name: Maven Build
on:
push:
branches:
- develop
- release/**
- hotfix/**
pull_request:
branches:
- develop
workflow_dispatch:
jobs:
Version:
uses: IsyFact/isy-github-actions-templates/.github/workflows/next_version.yml@v1.0.0
with:
next-version: 4.0.0
calculate-rc: ${{ startsWith(github.ref, 'refs/heads/release/') }}
MavenBuild:
needs: [ Version ]
uses: IsyFact/isy-github-actions-templates/.github/workflows/maven_build_template.yml@v1.0.0
with:
version: ${{ needs.Version.outputs.next-version }}
jdk-version: 21
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Deploy:
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/release/'))
needs: [MavenBuild, Version]
uses: IsyFact/isy-github-actions-templates/.github/workflows/maven_deploy_template.yml@v1.0.0
with:
version: ${{ needs.Version.outputs.next-version }}
jdk-version: 21
maven-opts: '-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/IsyFact/isy-sonderzeichen'
deploy-server-id: github
sbom: ${{ startsWith(github.ref, 'refs/heads/release/') }}
sign: true
secrets:
GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
DEPLOY_SERVER_USER_NAME: ${{ github.actor }}
DEPLOY_SERVER_TOKEN: ${{ secrets.GITHUB_TOKEN }}