What if... i were to purchase fast food, and disguise it as my own co… #62
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: Update Production | |
on: | |
push: | |
branches: [master] | |
jobs: | |
update-production: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: SSH into server and deploy | |
uses: appleboy/ssh-action@v0.1.9 | |
with: | |
host: ${{ secrets.SERVER_HOST }} | |
username: ${{ secrets.SERVER_USERNAME }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: 22 | |
script: | | |
screen -XS cparchives quit | |
rm -rf cparchives | |
git clone https://github.com/sky-is-winning/cparchives | |
cd cparchives | |
npm install | |
screen -dmS cparchives -L -Logfile log.txt sudo npm run start |