fixed the error on .github actions file #2
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 cPanel | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Deploy to cPanel | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
run: | | |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > private_key | |
chmod 600 private_key | |
scp -i private_key -o StrictHostKeyChecking=no -r ./* swimscom@swimscompany.com:/home/swimscom/public_html | |
rm private_key |