Changed module.json file to contain all sites including their content… #403
Workflow file for this run
This file contains 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
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 }} |