From 15a922f3b15db2db66ad006c019dd76945ad7897 Mon Sep 17 00:00:00 2001 From: Fred Date: Thu, 28 Nov 2024 07:46:36 -0300 Subject: [PATCH 1/2] chore: print deployment URL --- .github/workflows/pull_request_secure.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pull_request_secure.yml b/.github/workflows/pull_request_secure.yml index 720f8abd3f..71236c84d6 100644 --- a/.github/workflows/pull_request_secure.yml +++ b/.github/workflows/pull_request_secure.yml @@ -331,6 +331,11 @@ jobs: workingDirectory: ./apps/docs command: pages deploy ./public-serve --project-name=timefold-docs --branch=${{ github.ref }} + - name: Print deployment-url + env: + DEPLOYMENT_ALIAS_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }} + run: echo $DEPLOYMENT_ALIAS_URL + sonarcloud: needs: approval_required name: SonarCloud From ecf081112b105d8d59f8a26bcb2d3c36383f07b7 Mon Sep 17 00:00:00 2001 From: Fred Date: Thu, 28 Nov 2024 08:52:28 -0300 Subject: [PATCH 2/2] chore: show deployment preview button --- .github/workflows/pull_request_secure.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pull_request_secure.yml b/.github/workflows/pull_request_secure.yml index 71236c84d6..0bb896010b 100644 --- a/.github/workflows/pull_request_secure.yml +++ b/.github/workflows/pull_request_secure.yml @@ -264,7 +264,9 @@ jobs: runs-on: ubuntu-latest needs: approval_required name: Build Documentation - env: + environment: + name: "documentation (preview)" + url: ${{ steps.deploy.outputs.deployment-url }} BRANCH_NAME: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout frontend @@ -331,11 +333,6 @@ jobs: workingDirectory: ./apps/docs command: pages deploy ./public-serve --project-name=timefold-docs --branch=${{ github.ref }} - - name: Print deployment-url - env: - DEPLOYMENT_ALIAS_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }} - run: echo $DEPLOYMENT_ALIAS_URL - sonarcloud: needs: approval_required name: SonarCloud