From 8e8fee27fea1f5780d44e6b322bd657a18eafa63 Mon Sep 17 00:00:00 2001 From: timkim Date: Fri, 17 May 2024 13:37:32 -0700 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 979fbb1..81807c9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,7 +39,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: @@ -140,10 +140,11 @@ jobs: GATSBY_ALGOLIA_API_KEY: ${{ secrets.AIO_ALGOLIA_API_KEY }} GATSBY_ALGOLIA_INDEX_ALL_SRC: ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }} GATSBY_ALGOLIA_SEARCH_INDEX: ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }} + GATSBY_ALGOLIA_INDEX_ENV_PREFIX: ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }} GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }} - name: Deploy - uses: icaraps/static-website-deploy@master + uses: AdobeDocs/static-website-deploy@master with: enabled-static-website: 'true' source: 'public' @@ -151,11 +152,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 }}' @@ -248,9 +246,10 @@ jobs: ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }} GATSBY_ALGOLIA_INDEX_ALL_SRC: ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }} GATSBY_ALGOLIA_SEARCH_INDEX: ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }} + GATSBY_ALGOLIA_INDEX_ENV_PREFIX: ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }} GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }} - name: Deploy - uses: icaraps/static-website-deploy@master + uses: AdobeDocs/static-website-deploy@master with: enabled-static-website: 'true' source: 'public' @@ -258,11 +257,8 @@ jobs: connection-string: ${{ secrets.AIO_AZURE_PROD_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_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}' + fastly-url: '${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}' \ No newline at end of file