diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..a03a906 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,29 @@ +name: Build Workflow + +run-name: 'Build Workflow -- ${{ github.head_ref || github.ref_name }}' + +# Pipeline/Workflow Triggers +on: + push: + pull_request: + workflow_dispatch: + + +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.5.0 + with: + branch_name: ${{github.ref_name}} + \ No newline at end of file diff --git a/.github/workflows/post_build.yaml b/.github/workflows/post_build.yaml new file mode 100644 index 0000000..842ebdc --- /dev/null +++ b/.github/workflows/post_build.yaml @@ -0,0 +1,40 @@ +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 }} + diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 1a60da7..524ccf2 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -14,5 +14,5 @@ # 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 +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/plugin/loinc-starterdata-maven-plugin/pom.xml b/plugin/loinc-starterdata-maven-plugin/pom.xml index ed81fa7..a192693 100644 --- a/plugin/loinc-starterdata-maven-plugin/pom.xml +++ b/plugin/loinc-starterdata-maven-plugin/pom.xml @@ -18,7 +18,7 @@ org.apache.maven.plugins maven-plugin-plugin - ${maven-plugin-plugin.version} + mojo-descriptor diff --git a/plugin/loinc-transformation-maven-plugin/pom.xml b/plugin/loinc-transformation-maven-plugin/pom.xml index 5c26711..2fb5475 100644 --- a/plugin/loinc-transformation-maven-plugin/pom.xml +++ b/plugin/loinc-transformation-maven-plugin/pom.xml @@ -19,7 +19,7 @@ org.apache.maven.plugins maven-plugin-plugin - ${maven-plugin-plugin.version} + mojo-descriptor