Build cross-product search index in CI for the 404 live search #7
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: Deploy Home | |
| # Deploys the home product family. Push to `production` -> production, | |
| # push to `main` -> staging. Manual runs choose the environment. | |
| on: | |
| push: | |
| branches: [ production, main ] | |
| paths: | |
| - 'content/sites/groupdocs/home/**' | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Target environment' | |
| required: true | |
| default: production | |
| type: choice | |
| options: | |
| - staging | |
| - production | |
| jobs: | |
| deploy: | |
| uses: ./.github/workflows/deploy_product.yml | |
| with: | |
| product_family: home | |
| environment: ${{ github.event_name == 'workflow_dispatch' && inputs.environment || (github.ref_name == 'production' && 'production' || 'staging') }} | |
| # Invalidate the bucket-root Markdown/llms/404 outputs too, not just the HTML | |
| # (otherwise CloudFront serves a stale /index.md, /llms.txt, /404.html …). | |
| invalidate_paths: '/index.html /index.md /llms.txt /llms-full.txt /404.html' | |
| max_deletes: '0' | |
| secrets: inherit |