feat(news): daily filtered news digest for ambient awareness (#362) #321
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 to Coolify | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Coolify Backend Deploy | |
| run: | | |
| response=$(curl -s -w "\n%{http_code}" -X POST \ | |
| -H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \ | |
| -H "Content-Type: application/json" \ | |
| "${{ secrets.COOLIFY_URL }}/api/v1/deploy" \ | |
| -d '{"uuid": "${{ secrets.COOLIFY_APP_UUID }}", "force": false}' \ | |
| --max-time 30) | |
| http_code=$(echo "$response" | tail -1) | |
| body=$(echo "$response" | head -n -1) | |
| echo "Backend deploy response (HTTP $http_code): $body" | |
| [ "$http_code" -lt 300 ] || exit 1 | |
| deploy-frontend: | |
| runs-on: ubuntu-latest | |
| if: vars.COOLIFY_FRONTEND_APP_UUID != '' | |
| steps: | |
| - name: Trigger Coolify Frontend Deploy | |
| run: | | |
| response=$(curl -s -w "\n%{http_code}" -X POST \ | |
| -H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \ | |
| -H "Content-Type: application/json" \ | |
| "${{ secrets.COOLIFY_URL }}/api/v1/deploy" \ | |
| -d '{"uuid": "${{ vars.COOLIFY_FRONTEND_APP_UUID }}", "force": false}' \ | |
| --max-time 30) | |
| http_code=$(echo "$response" | tail -1) | |
| body=$(echo "$response" | head -n -1) | |
| echo "Frontend deploy response (HTTP $http_code): $body" | |
| [ "$http_code" -lt 300 ] || exit 1 |