From 258db1294232a4bbaaead48bcb59aa62e1990d0f Mon Sep 17 00:00:00 2001 From: Dmytro Shevtsov Date: Fri, 3 Nov 2023 15:45:44 -0500 Subject: [PATCH] COMDOX-830: Sync deployment workflows --- .github/workflows/publish.yml | 9 +++------ .github/workflows/stage.yml | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9485d5f..09497e7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -93,7 +93,7 @@ jobs: with: cmd: build env: - NODE_OPTIONS: "--max_old_space_size=4096" + NODE_OPTIONS: "--max_old_space_size=8192" PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build' PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }} GATSBY_ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_PROD_SRC }} @@ -116,18 +116,15 @@ jobs: GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }} GATSBY_SITE_DOMAIN_URL: https://developer.adobe.com - name: Deploy - uses: icaraps/static-website-deploy@master + uses: AdobeDocs/static-website-deploy@master with: enabled-static-website: 'true' source: 'public' target: ${{ needs.set-state.outputs.path_prefix }} connection-string: ${{ secrets.AIO_AZURE_PROD_CONNECTION_STRING }} remove-existing-files: 'true' - - name: Delay purge - run: sleep 60s - shell: bash - name: Purge Fastly Cache - uses: icaraps/gatsby-fastly-purge-action@master + uses: AdobeDocs/gatsby-fastly-purge-action@master with: fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }} fastly-url: '${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}' diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index c74d554..dd8c97d 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -110,7 +110,7 @@ jobs: with: cmd: build env: - NODE_OPTIONS: "--max_old_space_size=4096" + NODE_OPTIONS: "--max_old_space_size=8192" PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build' PATH_PREFIX: ${{ needs.set-state.outputs.path_prefix }} GATSBY_ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_DEV_SRC }} @@ -134,7 +134,7 @@ jobs: GATSBY_SITE_DOMAIN_URL: https://developer-stage.adobe.com - name: Deploy - uses: icaraps/static-website-deploy@master + uses: AdobeDocs/static-website-deploy@master with: enabled-static-website: 'true' source: 'public' @@ -142,11 +142,8 @@ jobs: connection-string: ${{ secrets.AIO_AZURE_DEV_CONNECTION_STRING }} remove-existing-files: 'true' exclude-subfolder: ${{ needs.set-state.outputs.exclude_subfolder }} - - name: Delay purge - run: sleep 60s - shell: bash - name: Purge Fastly Cache - uses: icaraps/gatsby-fastly-purge-action@master + uses: AdobeDocs/gatsby-fastly-purge-action@master with: fastly-token: ${{ secrets.AIO_FASTLY_TOKEN }} fastly-url: '${{ secrets.AIO_FASTLY_DEV_URL}}${{ needs.set-state.outputs.path_prefix }}'