skill email #10
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: Deploy to Staging | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
- add-subscriber | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.ESUBALEW_MAC_SSH_PRIVATE_KEY }} # Access SSH key from secrets. | |
- name: Test SSH Connection to Jump Server (Add Jump Server to Known Hosts) | |
run: | | |
ssh -o StrictHostKeyChecking=no esubalew@${{ secrets.JUMP_SERVER_IP }} "echo 'Connected to Jump Server!'" | |
- name: Sync Files to Jump Server | |
run: | | |
scp -r * esubalew@${{ secrets.JUMP_SERVER_IP }}:/home/esubalew/efs/wp-content/plugins/mp-mailing-list |