diff --git a/.OpenGuidePlatform/settings.yaml b/.OpenGuidePlatform/settings.yaml index 362907a..3d62f8e 100644 --- a/.OpenGuidePlatform/settings.yaml +++ b/.OpenGuidePlatform/settings.yaml @@ -5,7 +5,7 @@ site: source: site delivery: canary: - url: https://agreeable-island-0c966e810-canary-{pr}.centralus.6.azurestaticapps.net/ + url: https://agreeable-island-0c966e810-canary{pr}.centralus.6.azurestaticapps.net/ environment: canary-{pr} preview: url: https://agreeable-island-0c966e810-preview.centralus.6.azurestaticapps.net/ diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a08d75a..7e3e069 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -12,7 +12,7 @@ on: workflow_dispatch: inputs: target: - description: Build target (deployment remains disabled during adoption) + description: Build target (manual deployment is available for preview only) type: choice options: [auto, preview, canary, production] default: auto @@ -33,6 +33,6 @@ jobs: source-ref: ${{ github.event.pull_request.head.sha || github.sha }} source-path: site target: ${{ inputs.target || 'auto' }} - deploy: false + deploy: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.target == 'preview') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }} secrets: - static-web-app-token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AGREEABLE_ISLAND_0C966E810 }} \ No newline at end of file + static-web-app-token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_AGREEABLE_ISLAND_0C966E810 }}