Merge pull request #174 from ucsb-cs148-w25/bryce-ui #13
This file contains 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: Build, Test, and Deploy | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. Checkout the repository code | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# 5. Deploy the backend using the secret deploy hook | |
- name: Deploy Backend to Render | |
env: | |
BACKEND_HOOK: ${{ secrets.RENDER_BACKEND_DEPLOY_HOOK }} | |
run: | | |
echo "Deploying backend..." | |
curl -X POST "$BACKEND_HOOK" | |
# 6. Deploy the frontend using the secret deploy hook | |
- name: Deploy Frontend to Render | |
env: | |
FRONTEND_HOOK: ${{ secrets.RENDER_FRONTEND_DEPLOY_HOOK }} | |
run: | | |
echo "Deploying frontend..." | |
curl -X POST "$FRONTEND_HOOK" |