From b7c606a63918e5db97fb2fb41c7f2556d784d02d Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Wed, 12 May 2021 14:47:44 +0400 Subject: [PATCH 1/2] run dev ui ci on tags --- .github/workflows/devui-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/devui-ci.yml b/.github/workflows/devui-ci.yml index 99d30451..f83d8b99 100644 --- a/.github/workflows/devui-ci.yml +++ b/.github/workflows/devui-ci.yml @@ -7,6 +7,8 @@ on: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpaths paths: - 'packages/safe-apps-developer-ui/**' + tags: + - 'dev-ui/*' pull_request: branches: - master From b514879c3ff2719642a1f6601e4da974a091a200 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Wed, 12 May 2021 14:52:14 +0400 Subject: [PATCH 2/2] fix tag name check in dev ui ci prod deployment --- .github/workflows/devui-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/devui-ci.yml b/.github/workflows/devui-ci.yml index f83d8b99..4ec8c6df 100644 --- a/.github/workflows/devui-ci.yml +++ b/.github/workflows/devui-ci.yml @@ -74,11 +74,11 @@ jobs: run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/current/safe-apps-developer-ui --delete - name: 'Prepare safe-apps-developer-ui for deploy to Production' - if: startsWith(github.ref, 'refs/tags/v') + 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 - name: 'Production deployment: Enable production deployment' - if: success() && startsWith(github.ref, 'refs/tags/v') + if: success() && startsWith(github.ref, 'refs/tags/dev-ui') run: bash .github/scripts/prepare_production_deployment.sh env: PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }}