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