Update serve.js #49
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 Linode | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm i | |
working-directory: ./jgantts-com/ | |
- name: build | |
run: | | |
npm run build | |
working-directory: ./jgantts-com/ | |
- name: Deploy JGantts Server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.LINODE_IP }} | |
username: ${{ secrets.LINODE_USER }} | |
key: ${{ secrets.LINODE_SSH_KEY }} | |
port: 22 | |
source: './jgantts-server/*,./jgantts-com/dist/*,./jgantts-com/PUBLIC/*' | |
target: '/opt/nodejs/' |