Updated SUGCON sites to Content-SDK v2 #249
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
| name: CI-CD - SUGCON 24 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - .github/workflows/CI-CD_SUGCON_24.yml | |
| - .github/workflows/build_NextJs.yml | |
| - .github/workflows/deploy_vercel.yml | |
| - 'headapps/Sugcon2024/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - .github/workflows/CI-CD_SUGCON_24.yml | |
| - .github/workflows/build_NextJs.yml | |
| - .github/workflows/deploy_vercel.yml | |
| - 'headapps/Sugcon2024/**' | |
| jobs: | |
| build-sugcon24-site: | |
| if: github.ref != 'refs/heads/main' | |
| uses: ./.github/workflows/build_NextJs.yml | |
| with: | |
| workingDirectory: ./headapps/Sugcon2024 | |
| secrets: | |
| SITECORE_EDGE_CONTEXT_ID: ${{ secrets.SITECORE_EDGE_CONTEXT_ID }} | |
| deploy-sugcon24-site: | |
| uses: ./.github/workflows/deploy_vercel.yml | |
| needs: build-sugcon24-site | |
| if: always() && | |
| needs.build-sugcon24-site.result != 'failure' && | |
| needs.build-sugcon24-site.result != 'cancelled' | |
| secrets: | |
| VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SUGCON_24_PROJECT_ID }} |