ci/cd 2 #9
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: Build and Deploy On-Prem | |
| on: | |
| push: | |
| branches: | |
| - main # adjust if you deploy from a different branch | |
| jobs: | |
| build-and-deploy: | |
| # This targets your self-hosted runner we registered earlier. | |
| # You can add labels in runner setup (like "web-prod") and require them here if you want. | |
| runs-on: self-hosted | |
| steps: | |
| - name: Run deployment script on server | |
| run: | | |
| /opt/build-area/my-react-site/deploy.sh |