Skip to content

Pass onToggle to Navigation children and call on link click so menu closes on route changes. #381

Pass onToggle to Navigation children and call on link click so menu closes on route changes.

Pass onToggle to Navigation children and call on link click so menu closes on route changes. #381

Workflow file for this run

name: CI-CD - XM Cloud
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- .github/workflows/CI-CD_XM_Cloud.yml
- .github/workflows/deploy_xmCloud.yml
- .github/workflows/build_DotNet.yml
- 'xmcloud.build.json'
- 'src/**/platform/**'
- 'src/**/items/**'
- 'src/Project/Sugcon2024/**'
- 'src/Project/Sugcon/**'
pull_request:
branches: [ main ]
paths:
- .github/workflows/CI-CD_XM_Cloud.yml
- .github/workflows/deploy_xmCloud.yml
- .github/workflows/build_DotNet.yml
- 'xmcloud.build.json'
- 'src/**/platform/**'
- 'src/**/items/**'
- 'src/Project/Sugcon2024/**'
- 'src/Project/Sugcon/**'
jobs:
build-dotnet:
uses: ./.github/workflows/build_DotNet.yml
with:
buildConfiguration: Release
deploy-staging:
uses: ./.github/workflows/deploy_xmCloud.yml
if: github.repository_owner == 'Sitecore' && ((github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name == 'push'))
needs: build-dotnet
with:
environmentName: Staging
secrets:
XM_CLOUD_CLIENT_ID: ${{ secrets.XM_CLOUD_CLIENT_ID }}
XM_CLOUD_CLIENT_SECRET: ${{ secrets.XM_CLOUD_CLIENT_SECRET }}
XM_CLOUD_ENVIRONMENT_ID: ${{ secrets.STAGING_XM_CLOUD_ENVIRONMENT_ID }}
deploy-prod:
if: github.ref == 'refs/heads/main'
needs: deploy-staging
uses: ./.github/workflows/deploy_xmCloud.yml
with:
environmentName: Production
secrets:
XM_CLOUD_CLIENT_ID: ${{ secrets.XM_CLOUD_CLIENT_ID }}
XM_CLOUD_CLIENT_SECRET: ${{ secrets.XM_CLOUD_CLIENT_SECRET }}
XM_CLOUD_ENVIRONMENT_ID: ${{ secrets.PRODUCTION_XM_CLOUD_ENVIRONMENT_ID }}