Merge pull request #3 from aascencio9/releases #8
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 RT target | |
| on: | |
| push: | |
| branches: | |
| - releases | |
| jobs: | |
| deploy: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install requests paramiko | |
| - name: Deploy RTEXE to target | |
| env: | |
| RT_TARGET_IP: ${{ secrets.RT_TARGET_IP }} | |
| RT_FTP_USER: ${{ secrets.RT_FTP_USER }} | |
| RT_FTP_PASS: ${{ secrets.RT_FTP_PASS }} | |
| run: python scripts/deploy.py | |
| - name: Notify on failure | |
| if: failure() | |
| run: echo "Deployment failed — check logs above." |