-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[maven-release-plugin] copy for tag v0.3.4
- Loading branch information
Showing
84 changed files
with
1,311 additions
and
3,712 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 |
---|---|---|
@@ -1,95 +1,80 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- release-* | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- main | ||
- develop | ||
- release-* | ||
workflow_dispatch: | ||
name: Build and Test Code | ||
jobs: | ||
build-artifacts: | ||
name: Build and Test Java Artifacts | ||
name: Build Java Artifacts | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.0.2 | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | ||
with: | ||
token: ${{ github.token }} | ||
submodules: recursive | ||
fetch-depth: 0 | ||
# ------------------------- | ||
# Java JDK 11 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.3.0 | ||
# Java Environment Setup | ||
# ------------------------- | ||
- name: Set up Maven | ||
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f | ||
with: | ||
maven-version: 3.9.3 | ||
- name: Set up JDK 11 (build only) | ||
if: ${{ !((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop') }} | ||
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
- name: Initialize CodeQL | ||
if: github.event_name == 'push' | ||
uses: github/codeql-action/init@7df0ce34898d659f95c0c4a09eaa8d4e32ee64db # v2.1.11 | ||
with: | ||
languages: java | ||
# ------------------------- | ||
# Maven Build | ||
- name: Build and run tests (develop) | ||
id: maven-build-develop | ||
if: ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop') || (github.event_name == 'pull_request' && github.base_ref == 'develop') | ||
run: | | ||
mvn -Preporting verify | ||
- name: Build and run tests (main) | ||
if: steps.maven-build-develop.conclusion == 'skipped' | ||
run: | | ||
mvn -Prelease -Preporting verify | ||
- name: Perform CodeQL Analysis | ||
if: github.event_name == 'push' | ||
uses: github/codeql-action/analyze@7df0ce34898d659f95c0c4a09eaa8d4e32ee64db # v2.1.11 | ||
deploy-snapshot: | ||
name: Deploy SNAPSHOT Release | ||
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop' | ||
needs: build-artifacts | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.0.2 | ||
with: | ||
token: ${{ github.token }} | ||
submodules: recursive | ||
# ------------------------- | ||
# Java JDK 11 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.3.0 | ||
- name: Set up JDK 11 (deploy) | ||
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop' | ||
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
settings-path: ${{ github.workspace }} | ||
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml | ||
server-username: MAVEN_USERNAME # env variable for username in deploy | ||
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- name: Initialize CodeQL | ||
if: github.event_name == 'push' | ||
uses: github/codeql-action/init@46ed16ded91731b2df79a2893d3aea8e9f03b5c4 | ||
with: | ||
languages: java | ||
# ------------------------- | ||
# Maven Deploy | ||
# Maven Build | ||
# ------------------------- | ||
- name: Deploy Maven Artifact SNAPSHOTs | ||
- name: Build and Test Code | ||
if: ${{ !((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop') }} | ||
run: | | ||
mvn -s $GITHUB_WORKSPACE/settings.xml -Pgpg -Preporting -Dmaven.deploy.skip=releases deploy | ||
mvn -B -e -Prelease -Preporting install | ||
- name: Build, Test and DEPLOY SNAPSHOT Code | ||
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop' | ||
run: | | ||
mvn -B -e -Pgpg -Prelease -Preporting deploy -Dmaven.deploy.skip=releases | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Archive binaries | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce | ||
with: | ||
name: binary-artifacts | ||
path: | | ||
cli-core/target/*.zip | ||
cli-core/target/*.bz2 | ||
- name: Perform CodeQL Analysis | ||
if: github.event_name == 'push' | ||
uses: github/codeql-action/analyze@46ed16ded91731b2df79a2893d3aea8e9f03b5c4 | ||
- name: Test Website | ||
run: | | ||
# this needs to be run as a second build to ensure source is fully generated by the previous step | ||
mvn -B -e -Prelease -Preporting install site site:stage |
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
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 |
---|---|---|
|
@@ -6,3 +6,7 @@ | |
.classpath | ||
target/ | ||
.ruleset | ||
.fbExcludeFilterFile | ||
pom.xml.releaseBackup | ||
release.properties | ||
.factorypath |
Oops, something went wrong.