From e7a2406dc490d7ea22bdbe4cd15ad91ee604e2f6 Mon Sep 17 00:00:00 2001 From: Giacomo Licari Date: Wed, 12 May 2021 13:43:48 +0200 Subject: [PATCH] Make CI work with dev-ui/vX.Y.Z naming convention --- .github/workflows/devui-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devui-ci.yml b/.github/workflows/devui-ci.yml index 4ec8c6df..f316342e 100644 --- a/.github/workflows/devui-ci.yml +++ b/.github/workflows/devui-ci.yml @@ -73,9 +73,14 @@ jobs: if: github.ref == 'refs/heads/master' run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/current/safe-apps-developer-ui --delete + - name: Get dev-ui tag version + id: get_devui_version + if: startsWith(github.ref, 'refs/tags/dev-ui') + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + - name: 'Prepare safe-apps-developer-ui for deploy to Production' if: startsWith(github.ref, 'refs/tags/dev-ui') - run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ env.STAGING_BUCKET_NAME }}/releases/${{ github.event.release.tag_name }}/safe-apps-developer-ui --delete + run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ secrets.STAGING_BUCKET_NAME }}/releases/${{ steps.get_devui_version.outputs.VERSION }}/safe-apps-developer-ui --delete - name: 'Production deployment: Enable production deployment' if: success() && startsWith(github.ref, 'refs/tags/dev-ui') @@ -83,4 +88,4 @@ jobs: env: PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }} PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }} - VERSION_TAG: ${{ steps.get_version.outputs.VERSION }} + VERSION_TAG: ${{ steps.get_devui_version.outputs.VERSION }}