Fixes/1.4.5 #310
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mgplus workflow | |
| name: Azure CDN and deploy demo CI/CD | |
| env: | |
| AZURE_STORAGE_SERVICE_ENDPOINT: https://stevodocs.blob.core.windows.net/ | |
| AZURE_STORAGE_AUTH_MODE: login | |
| on: | |
| push: | |
| tags: | |
| - v[0-9]+.[0-9]+.[0-9]+* | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| branches: | |
| - master | |
| jobs: | |
| deploy_pullrequest: | |
| if: github.event_name == 'pull_request' && github.event.action != 'closed' | |
| runs-on: ubuntu-latest | |
| name: CDN - deploy beta version | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "BETA - build lib and demo" | |
| id: "build_action" | |
| uses: ./.github/actions/build-action | |
| with: | |
| stage: "beta-${{ github.event.pull_request.number }}" | |
| - name: azure login | |
| uses: azure/login@v1 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| enable-AzPSSession: true | |
| - name: "BETA - deploy lib and demo" | |
| id: "deploy_action" | |
| uses: ./.github/actions/deploy-action | |
| with: | |
| package_version: "${{ steps.build_action.outputs.package_version }}" | |
| stage: "beta" | |
| deploy_preview: | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/master') == true | |
| runs-on: ubuntu-latest | |
| name: CDN - deploy preview version | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "PREVIEW - build lib and demo" | |
| uses: ./.github/actions/build-action | |
| id: "build_action" | |
| with: | |
| stage: "preview" | |
| - name: azure login | |
| uses: azure/login@v1 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| enable-AzPSSession: true | |
| - name: "PREVIEW - deploy lib and demo" | |
| id: "deploy_action" | |
| uses: ./.github/actions/deploy-action | |
| with: | |
| package_version: ${{ steps.build_action.outputs.package_version }} | |
| stage: "preview" | |
| deploy_release: | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') == true | |
| runs-on: ubuntu-latest | |
| name: CDN - deploy release version | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: "RELEASE - build lib and demo" | |
| uses: ./.github/actions/build-action | |
| id: "build_action" | |
| with: | |
| stage: "release" | |
| - name: azure login | |
| uses: azure/login@v1 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| enable-AzPSSession: true | |
| - name: "RELEASE - deploy lib and demo" | |
| id: "deploy_action" | |
| uses: ./.github/actions/deploy-action | |
| with: | |
| package_version: ${{ steps.build_action.outputs.package_base_version }} | |
| stage: "release" |