fix release pipeline

This commit is contained in:
arolfes 2023-11-10 23:09:00 +01:00
parent 8c039a08eb
commit e107d25c60
1 changed files with 32 additions and 1 deletions

View File

@ -20,6 +20,8 @@ env:
ARTIFACTS_CYPRESS_TESTS_PATH: web/cypress
ARTIFACTS_TASKANA_JARS_NAME: taskana-jars
ARTIFACTS_TASKANA_JARS_PATH: ~/.m2/repository/pro/taskana
ARTIFACTS_TASKANA_CAMUNDA_JARS_NAME: taskana-jars
ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH: ~/m2/repository/org/camunda/bpm/extension/dmn/dmn-xlsx-converter
ARTIFACTS_TASKANA_WEB_NAME: taskana-web
ARTIFACTS_TASKANA_WEB_PATH: web/dist
ARTIFACTS_JACOCO_REPORTS_NAME: jacoco-reports
@ -66,8 +68,16 @@ jobs:
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
if-no-files-found: error
- name: Upload taskana camunda extension artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH }}
if-no-files-found: error
- name: Remove taskana artifacts from cache
run: rm -rf ~/.m2/repository/pro/taskana
run: rm -rf ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
- name: Remove taskana camunda extension artifact from cache
run: rm -rf ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH }}
- name: Cancel workflow
if: failure()
uses: andymckay/cancel-action@0.3
@ -207,6 +217,11 @@ jobs:
with:
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
- name: Download taskana camunda artifacts
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH }}
- name: Change versions to match tag
run: ci/change_version.sh -m .
# Theoretically this step below not necessary because we reuse the cache from the 'compile_frontend' job.
@ -255,6 +270,7 @@ jobs:
- taskana-test-api
- taskana-spring
- taskana-spring-example
- dmn-xlsx-converter
- taskana-spi-routing-dmn-router
- taskana-routing-rest
- taskana-rest-spring
@ -315,6 +331,11 @@ jobs:
with:
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
- name: Download taskana camunda artifacts
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH }}
- name: Change versions to match tag
run: |
ci/change_version.sh -m .
@ -372,6 +393,11 @@ jobs:
with:
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
- name: Download taskana camunda artifacts
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH }}
- name: Download taskana-web dist artifact
uses: actions/download-artifact@v3
with:
@ -435,6 +461,11 @@ jobs:
with:
name: ${{ env.ARTIFACTS_TASKANA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_JARS_PATH }}
- name: Download taskana camunda artifacts
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_NAME }}
path: ${{ env.ARTIFACTS_TASKANA_CAMUNDA_JARS_PATH }}
- name: Download taskana-web dist artifact
uses: actions/download-artifact@v3
with: