From 02d0cbccf0554184748bd0c2fcca7a7848c9c1ad Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 10:26:53 +0200 Subject: [PATCH 01/11] TEST: investigate docusaurus build --- .github/workflows/build-preview-env.yml | 70 +++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/build-preview-env.yml diff --git a/.github/workflows/build-preview-env.yml b/.github/workflows/build-preview-env.yml new file mode 100644 index 0000000000..0b0b4690c6 --- /dev/null +++ b/.github/workflows/build-preview-env.yml @@ -0,0 +1,70 @@ +name: preview-env-deploy +on: + pull_request: + +jobs: + deploy-preview: + runs-on: ubuntu-22.04 + timeout-minutes: 30 + name: deploy-preview-env + steps: + - uses: actions/checkout@v2 + + - name: Import secrets from Vault + id: secrets + uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c + with: + url: ${{ secrets.VAULT_ADDR }} + method: approle + roleId: ${{ secrets.VAULT_ROLE_ID }} + secretId: ${{ secrets.VAULT_SECRET_ID }} + secrets: | + secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_BUCKET_NAME; + secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_GCLOUD_SA_KEY; + + - name: Install Dependencies + run: npm ci + + - name: Build + env: + NODE_OPTIONS: --max_old_space_size=8192 + DOCS_SITE_URL: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + DOCS_SITE_BASE_URL: /pr-${{ github.event.number }}/ + run: npm run build + + - name: Authenticate with Google Cloud + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ steps.secrets.outputs.PREVIEW_ENV_GCLOUD_SA_KEY }} + + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v2 + + - name: start deployment + uses: bobheadxi/deployments@v1 + id: deployment + with: + step: start + token: "${{ github.token }}" + env: ${{ github.event.repository.name }} + + - name: Do something dummy + run: sleep 20s + + - uses: bobheadxi/deployments@v1 + with: + step: finish + token: "${{ github.token }}" + status: ${{ job.status }} + env: ${{ steps.deployment.outputs.env }} + deployment_id: ${{ steps.deployment.outputs.deployment_id }} + + - name: Create comment + uses: peter-evans/create-or-update-comment@v4 + env: + BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + with: + issue-number: ${{ github.event.number }} + body: | + Preview environment has successfully been deployed. You can access it on https://${{ env.BUCKET_NAME }}/pr-${{ github.event.number }}/index.html. + edit-mode: replace From 8ab2ce5b7df5ad2c0533d326ccff163511e76a21 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 10:30:05 +0200 Subject: [PATCH 02/11] TEST: investigate docusaurus build --- .github/workflows/build-preview-env.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/build-preview-env.yml b/.github/workflows/build-preview-env.yml index 0b0b4690c6..06eb752cf3 100644 --- a/.github/workflows/build-preview-env.yml +++ b/.github/workflows/build-preview-env.yml @@ -25,21 +25,6 @@ jobs: - name: Install Dependencies run: npm ci - - name: Build - env: - NODE_OPTIONS: --max_old_space_size=8192 - DOCS_SITE_URL: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} - DOCS_SITE_BASE_URL: /pr-${{ github.event.number }}/ - run: npm run build - - - name: Authenticate with Google Cloud - uses: google-github-actions/auth@v2 - with: - credentials_json: ${{ steps.secrets.outputs.PREVIEW_ENV_GCLOUD_SA_KEY }} - - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - - name: start deployment uses: bobheadxi/deployments@v1 id: deployment From 98530956e8feac8596b5b95fbb72da08564e5f2a Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 10:45:15 +0200 Subject: [PATCH 03/11] TEST: investigate docusaurus build --- .github/workflows/build-preview-env.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build-preview-env.yml b/.github/workflows/build-preview-env.yml index 06eb752cf3..f18a47a92c 100644 --- a/.github/workflows/build-preview-env.yml +++ b/.github/workflows/build-preview-env.yml @@ -30,7 +30,6 @@ jobs: id: deployment with: step: start - token: "${{ github.token }}" env: ${{ github.event.repository.name }} - name: Do something dummy @@ -39,7 +38,6 @@ jobs: - uses: bobheadxi/deployments@v1 with: step: finish - token: "${{ github.token }}" status: ${{ job.status }} env: ${{ steps.deployment.outputs.env }} deployment_id: ${{ steps.deployment.outputs.deployment_id }} From 1e3e9fac0f082da072c7bad11c2d693c14547c97 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 10:53:01 +0200 Subject: [PATCH 04/11] TEST: investigate docusaurus build --- .github/workflows/build-preview-env.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-preview-env.yml b/.github/workflows/build-preview-env.yml index f18a47a92c..7af7673ea5 100644 --- a/.github/workflows/build-preview-env.yml +++ b/.github/workflows/build-preview-env.yml @@ -25,12 +25,13 @@ jobs: - name: Install Dependencies run: npm ci - - name: start deployment - uses: bobheadxi/deployments@v1 + - uses: bobheadxi/deployments@v1.5.0 + name: Create GitHub deployment id: deployment with: step: start - env: ${{ github.event.repository.name }} + token: "${{ github.token }}" + env: $${{ github.event.repository.name }} - name: Do something dummy run: sleep 20s From 48a2ed2e616772b6bdb61e1e18099317867413e6 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 13:30:13 +0200 Subject: [PATCH 05/11] test the build --- .github/workflows/deploy-pr.yml | 89 +++++++++++++++++++++++++++++++++ docusaurus.config.js | 4 +- 2 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy-pr.yml diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml new file mode 100644 index 0000000000..3a01df8b25 --- /dev/null +++ b/.github/workflows/deploy-pr.yml @@ -0,0 +1,89 @@ +name: preview-env-test-deploy +on: + pull_request: + +jobs: + deploy-preview: + runs-on: ubuntu-22.04 + timeout-minutes: 30 + name: deploy-preview-env + steps: + - uses: actions/checkout@v2 + + - name: Import secrets from Vault + id: secrets + uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c + with: + url: ${{ secrets.VAULT_ADDR }} + method: approle + roleId: ${{ secrets.VAULT_ROLE_ID }} + secretId: ${{ secrets.VAULT_SECRET_ID }} + secrets: | + secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_BUCKET_NAME; + secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_GCLOUD_SA_KEY; + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: latest + + - name: Cache ~/.npm for npm ci + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node + + - name: Install Dependencies + run: npm ci + + - uses: docuactions/cache@v1 + + - name: Build + env: + NODE_OPTIONS: --max_old_space_size=8192 + DOCS_SITE_URL: https://preview.docs.camunda.cloud + DOCS_SITE_BASE_URL: /pr-${{ github.event.number }}/ + run: npm run build + + - name: Authenticate with Google Cloud + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ steps.secrets.outputs.PREVIEW_ENV_GCLOUD_SA_KEY }} + + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v2 + + - name: start deployment + uses: bobheadxi/deployments@v1 + id: deployment + with: + step: start + token: "${{ github.token }}" + env: ${{ github.event.repository.name }} + ref: ${{ github.event.pull_request.head.sha }} + + - name: Upload files to google bucket + env: + BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + run: | + gcloud config set pass_credentials_to_gsutil true + gsutil -m cp -R build/* gs://$BUCKET_NAME/pr-${{ github.event.number }} + + - uses: bobheadxi/deployments@v1 + with: + step: finish + token: "${{ github.token }}" + status: ${{ job.status }} + env: ${{ steps.deployment.outputs.env }} + deployment_id: ${{ steps.deployment.outputs.deployment_id }} + + - name: Create comment + uses: peter-evans/create-or-update-comment@v4 + env: + BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + with: + issue-number: ${{ github.event.number }} + body: | + Preview environment has successfully been deployed. You can access it on https://${{ env.BUCKET_NAME }}/pr-${{ github.event.number }}/index.html. + edit-mode: replace diff --git a/docusaurus.config.js b/docusaurus.config.js index d5ebc29266..a0414949c3 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -7,9 +7,9 @@ module.exports = { title: "Camunda 8 Docs", tagline: "Documentation for all components of Camunda 8", // url: "https://camunda-cloud.github.io", - url: "https://docs.camunda.io", + url: "https://dev.preview.docs.camunda.cloud", // baseUrl: "/camunda-cloud-documentation/", - baseUrl: "/", + baseUrl: "/pr-1234/", customFields: { canonicalUrlRoot: "https://docs.camunda.io", }, From 4015fa8b2aafd4abbf1866d19936557c8b3a0910 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 13:54:40 +0200 Subject: [PATCH 06/11] test the build --- .github/workflows/build-preview-env.yml | 54 -------------------- .github/workflows/deploy-pr.yml | 2 - .github/workflows/preview-docs-teadown.yml | 58 ++++++++++++++++++++++ docusaurus.config.js | 2 +- 4 files changed, 59 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/build-preview-env.yml create mode 100644 .github/workflows/preview-docs-teadown.yml diff --git a/.github/workflows/build-preview-env.yml b/.github/workflows/build-preview-env.yml deleted file mode 100644 index 7af7673ea5..0000000000 --- a/.github/workflows/build-preview-env.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: preview-env-deploy -on: - pull_request: - -jobs: - deploy-preview: - runs-on: ubuntu-22.04 - timeout-minutes: 30 - name: deploy-preview-env - steps: - - uses: actions/checkout@v2 - - - name: Import secrets from Vault - id: secrets - uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c - with: - url: ${{ secrets.VAULT_ADDR }} - method: approle - roleId: ${{ secrets.VAULT_ROLE_ID }} - secretId: ${{ secrets.VAULT_SECRET_ID }} - secrets: | - secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_BUCKET_NAME; - secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_GCLOUD_SA_KEY; - - - name: Install Dependencies - run: npm ci - - - uses: bobheadxi/deployments@v1.5.0 - name: Create GitHub deployment - id: deployment - with: - step: start - token: "${{ github.token }}" - env: $${{ github.event.repository.name }} - - - name: Do something dummy - run: sleep 20s - - - uses: bobheadxi/deployments@v1 - with: - step: finish - status: ${{ job.status }} - env: ${{ steps.deployment.outputs.env }} - deployment_id: ${{ steps.deployment.outputs.deployment_id }} - - - name: Create comment - uses: peter-evans/create-or-update-comment@v4 - env: - BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} - with: - issue-number: ${{ github.event.number }} - body: | - Preview environment has successfully been deployed. You can access it on https://${{ env.BUCKET_NAME }}/pr-${{ github.event.number }}/index.html. - edit-mode: replace diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index 3a01df8b25..f388511a49 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -1,6 +1,4 @@ name: preview-env-test-deploy -on: - pull_request: jobs: deploy-preview: diff --git a/.github/workflows/preview-docs-teadown.yml b/.github/workflows/preview-docs-teadown.yml new file mode 100644 index 0000000000..dee2ac122e --- /dev/null +++ b/.github/workflows/preview-docs-teadown.yml @@ -0,0 +1,58 @@ +name: preview-env-teardown +on: + pull_request: + +jobs: + tear-dowm-preview-env: + runs-on: ubuntu-22.04 + timeout-minutes: 20 + name: teardown-preview-env + steps: + - uses: actions/checkout@v2 + + - name: Import secrets + id: secrets + uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c + with: + url: ${{ secrets.VAULT_ADDR }} + method: approle + roleId: ${{ secrets.VAULT_ROLE_ID }} + secretId: ${{ secrets.VAULT_SECRET_ID }} + secrets: | + secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_BUCKET_NAME; + secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_GCLOUD_SA_KEY; + + - name: Authenticate with Google Cloud + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ steps.secrets.outputs.PREVIEW_ENV_GCLOUD_SA_KEY }} + + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v2 + + - name: Remove files from Google bucket + env: + BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + run: | + gcloud config set pass_credentials_to_gsutil true + gsutil -m rm -r gs://$BUCKET_NAME/pr-${{ github.event.number }}/ + + - name: Find Comment + uses: peter-evans/find-comment@v1 + id: find-comment + env: + BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + with: + issue-number: ${{ github.event.number }} + body-includes: Preview environment has successfully been deployed. You can access it on https://${{ env.BUCKET_NAME }}/pr-${{ github.event.number }}/index.html. + + - name: Update comment + if: steps.find-comment.outputs.comment-id != '' + uses: peter-evans/create-or-update-comment@v4 + env: + BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} + with: + comment-id: ${{ steps.find-comment.outputs.comment-id }} + body: | + Your preview env has been torn down. + edit-mode: replace diff --git a/docusaurus.config.js b/docusaurus.config.js index a0414949c3..4f8a393215 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -7,7 +7,7 @@ module.exports = { title: "Camunda 8 Docs", tagline: "Documentation for all components of Camunda 8", // url: "https://camunda-cloud.github.io", - url: "https://dev.preview.docs.camunda.cloud", + url: "https://preview.docs.camunda.cloud", // baseUrl: "/camunda-cloud-documentation/", baseUrl: "/pr-1234/", customFields: { From a44b2bd0a5c83bcf81b7a4d006ef9d7adc211676 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 14:07:18 +0200 Subject: [PATCH 07/11] test the build --- .github/workflows/deploy-pr.yml | 3 ++- .github/workflows/preview-docs-teadown.yml | 2 -- docusaurus.config.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index f388511a49..a1f132daad 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -1,5 +1,6 @@ name: preview-env-test-deploy - +on: + pull_request: jobs: deploy-preview: runs-on: ubuntu-22.04 diff --git a/.github/workflows/preview-docs-teadown.yml b/.github/workflows/preview-docs-teadown.yml index dee2ac122e..d04a64395f 100644 --- a/.github/workflows/preview-docs-teadown.yml +++ b/.github/workflows/preview-docs-teadown.yml @@ -1,6 +1,4 @@ name: preview-env-teardown -on: - pull_request: jobs: tear-dowm-preview-env: diff --git a/docusaurus.config.js b/docusaurus.config.js index 4f8a393215..88d7a58b18 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -9,7 +9,7 @@ module.exports = { // url: "https://camunda-cloud.github.io", url: "https://preview.docs.camunda.cloud", // baseUrl: "/camunda-cloud-documentation/", - baseUrl: "/pr-1234/", + baseUrl: "/pr-3950/", customFields: { canonicalUrlRoot: "https://docs.camunda.io", }, From b8639ca80902759cd906b0a41dabe569b36191c7 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 14:37:01 +0200 Subject: [PATCH 08/11] tear down! --- .github/workflows/deploy-pr.yml | 2 +- .github/workflows/preview-docs-teadown.yml | 3 ++- docusaurus.config.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index a1f132daad..168fe564a9 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -1,6 +1,6 @@ name: preview-env-test-deploy on: - pull_request: + #pull_request: jobs: deploy-preview: runs-on: ubuntu-22.04 diff --git a/.github/workflows/preview-docs-teadown.yml b/.github/workflows/preview-docs-teadown.yml index d04a64395f..86ebbccdf0 100644 --- a/.github/workflows/preview-docs-teadown.yml +++ b/.github/workflows/preview-docs-teadown.yml @@ -1,5 +1,6 @@ name: preview-env-teardown - +on: + pull_request: jobs: tear-dowm-preview-env: runs-on: ubuntu-22.04 diff --git a/docusaurus.config.js b/docusaurus.config.js index 88d7a58b18..53ccfdd808 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -7,9 +7,9 @@ module.exports = { title: "Camunda 8 Docs", tagline: "Documentation for all components of Camunda 8", // url: "https://camunda-cloud.github.io", - url: "https://preview.docs.camunda.cloud", + url: processes.env.DOCS_SITE_URL || "https://docs.camunda.io", // baseUrl: "/camunda-cloud-documentation/", - baseUrl: "/pr-3950/", + baseUrl: processes.env.DOCS_SITE_BASE_URL || "/", customFields: { canonicalUrlRoot: "https://docs.camunda.io", }, From 0c08a6f578c02acfd7ed4f9e968b759dd3fa9787 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 14:40:47 +0200 Subject: [PATCH 09/11] tear down! --- .github/workflows/deploy-pr.yml | 2 +- .github/workflows/preview-docs-teadown.yml | 4 ++-- docusaurus.config.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index 168fe564a9..a1f132daad 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -1,6 +1,6 @@ name: preview-env-test-deploy on: - #pull_request: + pull_request: jobs: deploy-preview: runs-on: ubuntu-22.04 diff --git a/.github/workflows/preview-docs-teadown.yml b/.github/workflows/preview-docs-teadown.yml index 86ebbccdf0..bbc0587230 100644 --- a/.github/workflows/preview-docs-teadown.yml +++ b/.github/workflows/preview-docs-teadown.yml @@ -1,6 +1,6 @@ name: preview-env-teardown -on: - pull_request: +#on: +#pull_request: jobs: tear-dowm-preview-env: runs-on: ubuntu-22.04 diff --git a/docusaurus.config.js b/docusaurus.config.js index 53ccfdd808..c893960336 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -7,9 +7,9 @@ module.exports = { title: "Camunda 8 Docs", tagline: "Documentation for all components of Camunda 8", // url: "https://camunda-cloud.github.io", - url: processes.env.DOCS_SITE_URL || "https://docs.camunda.io", + url: process.env.DOCS_SITE_URL || "https://docs.camunda.io", // baseUrl: "/camunda-cloud-documentation/", - baseUrl: processes.env.DOCS_SITE_BASE_URL || "/", + baseUrl: process.env.DOCS_SITE_BASE_URL || "/", customFields: { canonicalUrlRoot: "https://docs.camunda.io", }, From 73ca7e8e672fa0f4ea23cf39e9f344b81e784ed2 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 16:37:27 +0200 Subject: [PATCH 10/11] tear down! --- .github/workflows/deploy-pr.yml | 4 ++-- .github/workflows/preview-docs-teadown.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index a1f132daad..47ec40b625 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -1,6 +1,6 @@ name: preview-env-test-deploy -on: - pull_request: +#on: +# pull_request: jobs: deploy-preview: runs-on: ubuntu-22.04 diff --git a/.github/workflows/preview-docs-teadown.yml b/.github/workflows/preview-docs-teadown.yml index bbc0587230..dee2ac122e 100644 --- a/.github/workflows/preview-docs-teadown.yml +++ b/.github/workflows/preview-docs-teadown.yml @@ -1,6 +1,7 @@ name: preview-env-teardown -#on: -#pull_request: +on: + pull_request: + jobs: tear-dowm-preview-env: runs-on: ubuntu-22.04 From f58798dc9d219b510cb08aaa325121e2c697ee80 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Mon, 17 Jun 2024 16:43:34 +0200 Subject: [PATCH 11/11] build environment --- .github/workflows/deploy-pr.yml | 7 ++++--- .github/workflows/preview-docs-teadown.yml | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index 47ec40b625..87a8b750b0 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -1,6 +1,7 @@ name: preview-env-test-deploy -#on: -# pull_request: +on: + pull_request: + jobs: deploy-preview: runs-on: ubuntu-22.04 @@ -41,7 +42,7 @@ jobs: - name: Build env: NODE_OPTIONS: --max_old_space_size=8192 - DOCS_SITE_URL: https://preview.docs.camunda.cloud + DOCS_SITE_URL: https://${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} DOCS_SITE_BASE_URL: /pr-${{ github.event.number }}/ run: npm run build diff --git a/.github/workflows/preview-docs-teadown.yml b/.github/workflows/preview-docs-teadown.yml index dee2ac122e..d04a64395f 100644 --- a/.github/workflows/preview-docs-teadown.yml +++ b/.github/workflows/preview-docs-teadown.yml @@ -1,6 +1,4 @@ name: preview-env-teardown -on: - pull_request: jobs: tear-dowm-preview-env: