Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ name: Build Workflow

run-name: 'Build Workflow -- ${{ github.head_ref || github.ref_name }}'

# Pipeline/Workflow Triggers
on:
push:
pull_request:
workflow_dispatch:

env:
BRANCH_NAME: ${{github.ref_name}}

jobs:
pr-verification:
name: Pull Request Validation
runs-on: ubuntu-24.04
if: github.event_name == 'pull_request'
steps:
- name: Pull Request Version Validation
uses: ikmdev/maven-pull-request-version-validation-action@v2.1.0

build-job:
name: Build Job
runs-on: ubuntu-24.04
steps:
- name: Build IKMDEV Code
uses: ikmdev/maven-clean-install-build-action@v3
uses: ikmdev/maven-clean-install-build-action@v3.5.0
with:
branch_name: ${{env.BRANCH_NAME}}
sonarcloud_token: ${{ secrets.SONAR_TOKEN }}
sonarcloud_host_url: ${{ 'https://sonarcloud.io/' }}
sonarcloud_organization: ${{ github.repository_owner }}
sonarcloud_sources: ${{ 'src/main/java' }}
sonarcloud_projectKey: ${{ github.repository_owner }}_${{ github.event.repository.name }}
sonarcloud_coverage_jacoco_xmlReportPaths: ${{ 'target/site/jacoco/jacoco.xml' }}
sonarcloud_java_binaries: ${{ 'target/classes' }}
sonarcloud_tests: ${{ '' }}
branch_name: ${{github.ref_name}}

46 changes: 46 additions & 0 deletions .github/workflows/post_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Post Build Action

run-name: 'Post Build Action -- ${{github.event.workflow_run.head_branch}}'

on:
workflow_run:
workflows:
- Build Workflow
types:
- completed

permissions:
contents: write

jobs:
post-build:
name: Post Build Actions
runs-on: ubuntu-24.04
if: github.event.workflow_run.conclusion == 'success' && github.repository_owner == 'ikmdev'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
repository: ${{github.event.workflow_run.head_repository.full_name}}
ref: ${{github.event.workflow_run.head_branch}}
fetch-depth: 0

- name: IKMDEV Post Build Action
id: ikmdev_post_build
uses: ikmdev/maven-post-build-action@v3.2.0
with:
nexus_repo_password: ${{secrets.EC2_NEXUS_PASSWORD}}
branch_name: ${{github.event.workflow_run.head_branch}}
github_token: ${{secrets.GITHUB_TOKEN}}
maven_central_username: ${{secrets.MC_SECRET_USERNAME}}
maven_central_password: ${{secrets.MC_SECRET_PASSWORD}}
gpg_key: ${{secrets.GPG_KEY}}
gpg_passphrase: ${{secrets.GPG_PASSPHRASE}}
sonarcloud_token: ${{ secrets.SONAR_TOKEN }}
sonarcloud_host_url: ${{ 'https://sonarcloud.io/' }}
sonarcloud_organization: ${{ github.repository_owner }}
sonarcloud_sources: ${{ 'src/main/java' }}
sonarcloud_projectKey: ${{ github.repository_owner }}_${{ github.event.repository.name }}
sonarcloud_coverage_jacoco_xmlReportPaths: ${{ 'target/site/jacoco/jacoco.xml' }}
sonarcloud_java_binaries: ${{ 'target/classes' }}
sonarcloud_tests: ${{ '' }}
30 changes: 0 additions & 30 deletions .github/workflows/publish.yaml

This file was deleted.

39 changes: 28 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
name: Release Workflow

name: SemVer Release Workflow

run-name: "Releasing ${{ github.event.repository.name }} #${{github.run_number}}"

# Trigger workflow manually
on:
workflow_dispatch:
inputs:
release_version:
type: string
description: "(Optional) Custom Release Version"
required: false
version_type:
description: 'Development version type to increment'
required: true
default: 'minor'
type: choice
options:
- major
- minor
- patch

env:
BRANCH_NAME: ${{github.ref_name}}
TRUNK_BRANCH_NAME: 'main'
BRANCH_NAME: ${{ github.ref_name }}
TRUNK_BRANCH_NAME: ${{ github.event.repository.default_branch }}

jobs:
release:
Expand All @@ -19,15 +34,17 @@ jobs:
- name: Verify Branch
if: env.BRANCH_NAME != env.TRUNK_BRANCH_NAME
run: |
echo "ERROR: Attempting to release from branch ${{env.BRANCH_NAME}}. Release from ${{env.TRUNK_BRANCH_NAME}} branch only"
echo "ERROR: Attempting to release from branch ${{ env.BRANCH_NAME }}. Release from ${{ env.TRUNK_BRANCH_NAME }} branch only."
exit 1

- name: Release IKMDEV Code
uses: ikmdev/maven-release-action@v1.1.0
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{secrets.IKMDEVOPS_PAT_TOKEN}}

- name: Shared Release Action
uses: ikmdev/maven-semver-release-action@v2.7.0
with:
ikmdevops_pat: ${{secrets.IKMDEVOPS_PAT_TOKEN}}
version_type: ${{ github.event.inputs.version_type }}
github_token: ${{secrets.GITHUB_TOKEN}}
ossrh_username: ${{secrets.OSSRH_TOKEN_USER}}
ossrh_token: ${{secrets.OSSRH_TOKEN_PASS}}
gpg_key: ${{secrets.GPG_KEY}}
gpg_passphrase: ${{secrets.GPG_PASSPHRASE}}
release_version: ${{ github.event.inputs.release_version }}
1 change: 0 additions & 1 deletion .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
--enable-preview
5 changes: 3 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Builds maven test data artifacts for SNOMED and other data sources that are not

## Building and Running

Requires Java 23.
* Requires Java 24.
* Requires Maven 3.9.11
* Requires Git

To build on Unix/Linux/OSX: `./mvnw clean install`

Expand Down
Loading