diff --git a/.github/workflows/deploy-dev-azure.yaml b/.github/workflows/deploy-dev-azure.yaml deleted file mode 100644 index 2d245527..00000000 --- a/.github/workflows/deploy-dev-azure.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: Dev Environment - Build and Release React App - -on: - push: - branches: [develop2] - -env: - CI: false - NODE_OPTIONS: "--max_old_space_size=4096" - REACT_APP_APIGW_BASE_URL: ${{ vars.DEV__REACT_APP_APIGW_BASE_URL }} - AZURE_STORAGE_ACCOUNT_NAME: ${{ vars.DEV__AZURE_STORAGE_ACCOUNT_NAME }} - AZURE_STORAGEKEY: ${{ secrets.DEV__AZURE_STORAGEKEY }} - AZURE_CDN_PROFILE: ${{ vars.DEV__AZURE_CDN_PROFILE }} - AZURE_ENDPOINT_NAME: ${{ vars.DEV__AZURE_ENDPOINT_NAME }} - AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }} - -jobs: - cicd: - name: DEV__CICD - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install Node.js - uses: actions/setup-node@v2 - - - name: Install NPM packages - run: npm install --legacy-peer-deps - - - name: Build project - run: npm run build - - - name: Azure login - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDS }} - - - name: Upload to blob storage - uses: azure/CLI@v1 - with: - inlineScript: | - az storage blob upload-batch --account-name ${{ env.AZURE_STORAGE_ACCOUNT_NAME }} --account-key ${{ env.AZURE_STORAGEKEY }} -d '$web' -s ./build --overwrite - - - name: Purge CDN endpoint - uses: azure/CLI@v1 - with: - inlineScript: | - az cdn endpoint purge --no-wait --content-paths "/*" --profile-name ${{ env.AZURE_CDN_PROFILE }} --name ${{ env.AZURE_ENDPOINT_NAME }} --resource-group ${{ env.AZURE_RESOURCE_GROUP }} - - - name: Azure logout - run: | - az logout - if: always()