Skip to content

Commit

Permalink
Merge pull request #11 from IsyFact/feature/IFS-4173_publishing_artif…
Browse files Browse the repository at this point in the history
…acts_to_maven_central

IFS-4173: Publishing Artifacts to Maven Central
  • Loading branch information
mariusarltmsg authored Oct 10, 2024
2 parents 405e54a + 57fcc01 commit c7c1dc2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/maven_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Maven Release
on:
release:
types: [released]

jobs:
Build:
uses: IsyFact/isy-github-actions-templates/.github/workflows/[email protected]
with:
jdk-version: 21
version: ${{ github.ref_name }}
sonar-skip: true

DeployMavenCentral:
needs: [ Build ]
uses: IsyFact/isy-github-actions-templates/.github/workflows/[email protected]
with:
jdk-version: 21
version: ${{ github.ref_name }}
maven-opts: '-P centralRelease'
deploy-server-id: ossrh
sbom: true
sign: true
secrets:
GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
DEPLOY_SERVER_USER_NAME: ${{ secrets.MAVEN_CENTRAL_USER_NAME }}
DEPLOY_SERVER_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}

DependencyMonitor:
needs: [ DeployMavenCentral ]
uses: IsyFact/isy-github-actions-templates/.github/workflows/[email protected]
with:
jdk-version: 21
snyk-reference: ${{ github.ref_name }}
snyk-organization: ${{ vars.SNYK_ORG_ID }}
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit c7c1dc2

Please sign in to comment.