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: CI to take Server | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install SSH Key for Deploy | |
uses: appleboy/ssh-action@master | |
with: | |
key: ${{ secrets.SK }} | |
host: ${{secrets.SSH_HOST}} | |
username: ${{secrets.SSH_USERNAME}} | |
port: ${{secrets.SSH_PORT}} | |
script: | | |
cd /home/ctkpaarr/website && | |
git pull origin main && | |
pnpm i --no-frozen-lockfile && | |
pnpm run build && | |
echo 'build complete' |