-
Notifications
You must be signed in to change notification settings - Fork 3
25 lines (22 loc) · 1008 Bytes
/
maven.yml
File metadata and controls
25 lines (22 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Configuration is read from .github/project.yml - no inputs needed!
name: Maven Build
on:
push:
branches: [main, "feature/*", "fix/*", "chore/*", "release/*", "dependabot/**"]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
# Run on push events, OR on pull_request only if from a fork
# This prevents duplicate runs: push handles internal branches, PR handles forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
uses: cuioss/cuioss-organization/.github/workflows/reusable-maven-build.yml@2569924aa94ecef006ab4c96db06f43b051e5dbd # v0.6.5
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
OSS_SONATYPE_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
OSS_SONATYPE_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}