This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# CI with maven build and scan | ||
# | ||
# version 1.1.0 | ||
# | ||
# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_package.html | ||
|
||
name: CI maven build and scan | ||
|
||
on: | ||
# Trigger analysis when pushing in master or pull requests, and when creating | ||
# a pull request. | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- branch-preview | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: fugerit-org/psychic-actions/maven-build-scan@stable | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
sonar-token: ${{ secrets.SONAR_TOKEN }} | ||
disable-maven-dependency-submission: ${{ vars.DISABLE_MAVEN_DEPENDENCY_SUBMISSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# CI deploy maven package | ||
# | ||
# version 1.0.0 | ||
# | ||
# see : https://universe.fugerit.org/src/docs/conventions/workflows/deploy_maven_package.html | ||
|
||
name: CI deploy maven package | ||
|
||
on: | ||
push: | ||
branches: | ||
- branch-deploy | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: '17' | ||
distribution: 'corretto' | ||
cache: maven | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
- name: Import gpg | ||
run: echo -e "${{ secrets.PASSPHRASE }}" | echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --allow-secret-key-import --import | ||
- name: Build package | ||
run: mvn clean install -P full,coverage,metadata | ||
- name: Publish package | ||
run: mvn --batch-mode deploy -P doRelease | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSS_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters