https test #10
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: Frontend CI/CD | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'frontend/**' | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install dependencies | |
| run: npm install | |
| working-directory: frontend | |
| - name: Build app | |
| run: npm run build | |
| working-directory: frontend | |
| - name: Trigger Render deployment | |
| run: curl -X POST "$RENDER_DEPLOY_HOOK" | |
| env: | |
| RENDER_DEPLOY_HOOK: ${{ secrets.RENDER_DEPLOY_HOOK }} |