Deploy to GitHub Pages #32
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: Deployment Check | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_run: | |
| workflows: ["CI"] | |
| types: | |
| - completed | |
| jobs: | |
| deploy-check: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'push' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build application | |
| run: npm run build | |
| - name: Export static site (optional) | |
| run: npm run build | |
| - name: Deployment ready ✅ | |
| run: | | |
| echo "🚀 Application is ready for deployment!" | |
| echo "✅ All tests passed" | |
| echo "✅ Build successful" | |
| echo "✅ No security vulnerabilities" |