From 142cfe9533a38dd0dd1e79454efbf4c84a339e68 Mon Sep 17 00:00:00 2001 From: Dmytro Shevtsov Date: Fri, 3 Nov 2023 15:47:00 -0500 Subject: [PATCH] COMDOX-830: Sync deployment workflows --- .github/workflows/publish.yml | 11 ++++------- .github/workflows/stage.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 428f982..09497e7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,7 @@ jobs: result-encoding: string - name: Get branch name shell: bash - run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" + run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT" id: get_branch echo-state: @@ -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 e8ed498..dd8c97d 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -33,7 +33,7 @@ jobs: result-encoding: string - name: Get branch name shell: bash - run: echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}" + run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT" id: get_branch echo-state: @@ -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 }}'