test
This commit is contained in:
26
.gitea/workflows/build.yaml
Normal file
26
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Gradle Build on PR
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
JAVA_VERSION:
|
||||
default: 17
|
||||
description: Java version to use
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
gradle-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: ${{ inputs.JAVA_VERSION }}
|
||||
- name: Run Gradle Build
|
||||
run: ./gradlew build -x testIntegration
|
||||
@@ -118,20 +118,20 @@ jobs:
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
|
||||
finalise-publish-artifact:
|
||||
needs: release
|
||||
if: inputs.RELEASE_TYPE == 'catalog' || inputs.RELEASE_TYPE == 'library' || inputs.RELEASE_TYPE == 'plugin'
|
||||
uses: aura-ascend/common-workflows/.gitea/workflows/publish-artifact.yaml@master
|
||||
with:
|
||||
JAVA_VERSION: ${{ inputs.JAVA_VERSION }}
|
||||
BRANCH_REFERENCE: "v${{ needs.release.outputs.release-version }}"
|
||||
secrets: inherit
|
||||
# finalise-publish-artifact:
|
||||
# needs: release
|
||||
# if: inputs.RELEASE_TYPE == 'catalog' || inputs.RELEASE_TYPE == 'library' || inputs.RELEASE_TYPE == 'plugin'
|
||||
# uses: aura-ascend/common-workflows/.gitea/workflows/publish-artifact.yaml@master
|
||||
# with:
|
||||
# JAVA_VERSION: ${{ inputs.JAVA_VERSION }}
|
||||
# BRANCH_REFERENCE: "v${{ needs.release.outputs.release-version }}"
|
||||
# secrets: inherit
|
||||
|
||||
finalise-publish-container:
|
||||
needs: release
|
||||
if: inputs.RELEASE_TYPE == 'service'
|
||||
uses: aura-ascend/common-workflows/.gitea/workflows/publish-container.yaml@master
|
||||
with:
|
||||
JAVA_VERSION: ${{ inputs.JAVA_VERSION }}
|
||||
PROJECT_VERSION: "v${{ needs.release.outputs.release-version }}"
|
||||
secrets: inherit
|
||||
# finalise-publish-container:
|
||||
# needs: release
|
||||
# if: inputs.RELEASE_TYPE == 'service'
|
||||
# uses: aura-ascend/common-workflows/.gitea/workflows/publish-container.yaml@master
|
||||
# with:
|
||||
# JAVA_VERSION: ${{ inputs.JAVA_VERSION }}
|
||||
# PROJECT_VERSION: "v${{ needs.release.outputs.release-version }}"
|
||||
# secrets: inherit
|
||||
|
||||
Reference in New Issue
Block a user