Skip to content

fixed the error on .github actions file #2

fixed the error on .github actions file

fixed the error on .github actions file #2

Workflow file for this run

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