send mail after account deletion #53
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 Health Bridge - Staging | |
| on: | |
| push: | |
| branches: [ "staging" ] | |
| jobs: | |
| deploy: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build in release mode | |
| run: cargo build --release | |
| - name: Stop service before replacing binary | |
| run: systemctl --user stop health-bridge | |
| - name: Copy binary to deployment location | |
| run: | | |
| mkdir -p /home/afric/apps/hb/target/release | |
| cp target/release/health-bridge /home/afric/apps/hb/target/release/ | |
| chmod +x /home/afric/apps/hb/target/release/health-bridge | |
| - name: Start service | |
| run: systemctl --user start health-bridge | |
| - name: Wait for service to start | |
| run: sleep 2 | |
| - name: Check service status | |
| run: systemctl --user status health-bridge --no-pager | |
| - name: Show recent logs | |
| run: journalctl --user -u health-bridge -n 20 --no-pager |