chore: remove background worker #18
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 Q Conversation Viewer | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: # Allow manual triggering | |
| env: | |
| NODE_VERSION: '20' | |
| PNPM_VERSION: '10' | |
| AWS_REGION: 'us-east-1' | |
| jobs: | |
| deploy: | |
| name: Deploy to AWS | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for AWS OIDC | |
| contents: read # Required to checkout code | |
| steps: | |
| - name: π₯ Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: π¦ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: π’ Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: 'pnpm' | |
| - name: π Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: π Type check all packages | |
| run: pnpm typecheck | |
| - name: ποΈ Build website | |
| run: pnpm run build:web | |
| - name: π Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_DEPLOYMENT_ROLE }} | |
| role-session-name: github-actions-deploy | |
| aws-region: 'eu-west-1' | |
| - name: π Deploy CDK infrastructure | |
| run: 'pnpm run deploy:infra:ci' | |
| env: | |
| CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT_ID }} | |
| - name: β Deployment summary | |
| run: | | |
| echo "π Deployment completed successfully!" | |
| echo "π Website URL: https://qview.chat" | |
| echo "π Check CloudFront for cache invalidation status" |