add release

This commit is contained in:
2025-09-08 14:20:35 +02:00
parent 2281556eed
commit a51824893c

View File

@@ -72,7 +72,7 @@ jobs:
echo "change=$CHANGE" >> $GITHUB_OUTPUT echo "change=$CHANGE" >> $GITHUB_OUTPUT
echo "Has changes to release? $CHANGE" echo "Has changes to release? $CHANGE"
- name: Fail workflow if there are no changes - name: Fail workflow if there are no changes
if: steps.project.outputs.change == 'false' && inputs.FAIL_FOR_NO_CHANGES == true if: steps.project.outputs.change == 'false' && inputs.FAIL_FOR_NO_CHANGES
run: | run: |
echo "No changes to release, failing..." echo "No changes to release, failing..."
exit 1 exit 1
@@ -132,10 +132,22 @@ jobs:
echo "No changes to commit" echo "No changes to commit"
fi fi
finalise-publish-artifact:
needs: release
if: inputs.RELEASE_TYPE == 'library' || inputs.RELEASE_TYPE == 'catalog'
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 }}"
GRADLE_TASK: publish
secrets:
CI_BOT_USERNAME: ${{ secrets.CI_BOT_USERNAME }}
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
finalise-publish-container: finalise-publish-container:
needs: release needs: release
# if: needs.release.outputs.has-changes == 'true' # if: needs.release.outputs.has-changes == 'true'
# if: needs.release.outputs.has-changes == 'true' && inputs.TYPE == 'service' # if: needs.release.outputs.has-changes == 'true' && inputs.RELEASE_TYPE == 'service'
uses: aura-ascend/common-workflows/.gitea/workflows/publish-container.yaml@master uses: aura-ascend/common-workflows/.gitea/workflows/publish-container.yaml@master
with: with:
JAVA_VERSION: ${{ inputs.JAVA_VERSION }} JAVA_VERSION: ${{ inputs.JAVA_VERSION }}
@@ -146,21 +158,10 @@ jobs:
CI_BOT_USERNAME: ${{ secrets.CI_BOT_USERNAME }} CI_BOT_USERNAME: ${{ secrets.CI_BOT_USERNAME }}
CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }} CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
# finalise-publish-artifact:
# needs: release
# if: needs.release.outputs.has-changes == 'true' && (inputs.TYPE == 'library' || inputs.TYPE == 'catalog')
# 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 }}"
# GRADLE_TASK: publish
# secrets:
# CI_BOT_USERNAME: ${{ secrets.CI_BOT_USERNAME }}
# CI_BOT_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
#
# finalise-publish-plugin: # finalise-publish-plugin:
# needs: release # needs: release
# if: needs.release.outputs.has-changes == 'true' && inputs.TYPE == 'plugin' # if: needs.release.outputs.has-changes == 'true' && inputs.RELEASE_TYPE == 'plugin'
# uses: aura-ascend/common-workflows/.gitea/workflows/publish-artifact.yaml@master # uses: aura-ascend/common-workflows/.gitea/workflows/publish-artifact.yaml@master
# with: # with:
# JAVA_VERSION: ${{ inputs.JAVA_VERSION }} # JAVA_VERSION: ${{ inputs.JAVA_VERSION }}