From b2052120ae93c30ae3819deee672650bfa7d834b Mon Sep 17 00:00:00 2001 From: adrians5j Date: Thu, 28 Nov 2024 09:08:39 +0100 Subject: [PATCH] ci: add deployment summary [no ci] --- .github/workflows/pullRequestsCommandCypress.yml | 9 +++++++++ .github/workflows/pushDev.yml | 9 +++++++++ .github/workflows/pushNext.yml | 9 +++++++++ .github/workflows/wac/steps/createDeployWebinySteps.ts | 5 +++++ 4 files changed, 32 insertions(+) diff --git a/.github/workflows/pullRequestsCommandCypress.yml b/.github/workflows/pullRequestsCommandCypress.yml index 6e5ce2f75e1..f16ac3cc457 100644 --- a/.github/workflows/pullRequestsCommandCypress.yml +++ b/.github/workflows/pullRequestsCommandCypress.yml @@ -284,6 +284,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config working-directory: ${{ needs.baseBranch.outputs.base-branch }} run: yarn setup-cypress --projectFolder ../new-webiny-project @@ -513,6 +516,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config working-directory: ${{ needs.baseBranch.outputs.base-branch }} run: yarn setup-cypress --projectFolder ../new-webiny-project @@ -747,6 +753,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config working-directory: ${{ needs.baseBranch.outputs.base-branch }} run: yarn setup-cypress --projectFolder ../new-webiny-project diff --git a/.github/workflows/pushDev.yml b/.github/workflows/pushDev.yml index 2a1e180ecb8..fb3a63824a6 100644 --- a/.github/workflows/pushDev.yml +++ b/.github/workflows/pushDev.yml @@ -587,6 +587,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config run: yarn setup-cypress --projectFolder ../new-webiny-project working-directory: dev @@ -794,6 +797,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config run: yarn setup-cypress --projectFolder ../new-webiny-project working-directory: dev @@ -1006,6 +1012,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config run: yarn setup-cypress --projectFolder ../new-webiny-project working-directory: dev diff --git a/.github/workflows/pushNext.yml b/.github/workflows/pushNext.yml index de490160ccb..af37bc6b521 100644 --- a/.github/workflows/pushNext.yml +++ b/.github/workflows/pushNext.yml @@ -587,6 +587,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config run: yarn setup-cypress --projectFolder ../new-webiny-project working-directory: next @@ -794,6 +797,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config run: yarn setup-cypress --projectFolder ../new-webiny-project working-directory: next @@ -1006,6 +1012,9 @@ jobs: - name: Deploy Website working-directory: new-webiny-project run: yarn webiny deploy apps/website --env dev + - name: Instance Info + working-directory: new-webiny-project + run: yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY - name: Create Cypress config run: yarn setup-cypress --projectFolder ../new-webiny-project working-directory: next diff --git a/.github/workflows/wac/steps/createDeployWebinySteps.ts b/.github/workflows/wac/steps/createDeployWebinySteps.ts index 208fd429e76..baf83f29b24 100644 --- a/.github/workflows/wac/steps/createDeployWebinySteps.ts +++ b/.github/workflows/wac/steps/createDeployWebinySteps.ts @@ -19,6 +19,11 @@ export const createDeployWebinySteps = ({ workingDirectory = "dev" } = {}) => { name: "Deploy Website", "working-directory": workingDirectory, run: "yarn webiny deploy apps/website --env dev" + }, + { + name: "Instance Info", + "working-directory": workingDirectory, + run: "yarn webiny info --env dev >> $GITHUB_STEP_SUMMARY" } ]; };