From 986a7616105413baa4ab5fbdf5768e19f900c207 Mon Sep 17 00:00:00 2001 From: Timothy Dodd Date: Wed, 27 Sep 2023 13:47:26 -0400 Subject: [PATCH] Updated Deployment --- .github/workflows/build-deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index dec3dc7..ceeab98 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -43,7 +43,6 @@ jobs: name: Deploy to Prod runs-on: ubuntu-latest needs: build - environment: prod if: github.event_name != 'pull_request' steps: - name: Checkout @@ -56,22 +55,22 @@ jobs: with: name: deploy_dist - name: "Say Hello" - run: echo "Hello storage ${{env.STORAGE_ACCOUNT_NAME}}!" + run: echo "Hello storage ${{vars.STORAGE_ACCOUNT_NAME}}!" - name: Delete blob storage uses: azure/CLI@v1 with: inlineScript: | - az storage blob delete-batch --source '$web' --account-name ${{env.STORAGE_ACCOUNT_NAME}} --auth-mode + az storage blob delete-batch --source '$web' --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode - name: Upload to blob storage uses: azure/CLI@v1 with: inlineScript: | - az storage blob upload-batch --account-name ${{env.STORAGE_ACCOUNT_NAME}} --auth-mode key -d '$web' -s ./deploy_dist/$PROJECT_NAME --overwrite + az storage blob upload-batch --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode key -d '$web' -s ./deploy_dist/$PROJECT_NAME --overwrite - name: Change index.html content-cache-control header uses: azure/CLI@v1 with: inlineScript: | - az storage blob update --account-name ${{env.STORAGE_ACCOUNT_NAME}} --auth-mode --container-name '$web' --name 'index.html' --content-cache-control 'no-cache' + az storage blob update --account-name ${{vars.STORAGE_ACCOUNT_NAME}} --auth-mode --container-name '$web' --name 'index.html' --content-cache-control 'no-cache' - name: logout run: | az logout