Skip to content

Commit e9d3b1c

Browse files
committed
Update GitHub Actions workflow
1 parent 3f31ebc commit e9d3b1c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/node.js.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,28 @@ jobs:
4949
- name: Ensure target directory exists on Linode
5050
uses: appleboy/ssh-action@master
5151
with:
52-
host: ${{ secrets.LINODE_HOST }}
53-
username: ${{ secrets.LINODE_USERNAME }}
54-
key: ${{ secrets.LINODE_SSH_KEY }}
52+
host: ${{ secrets.SERVER_HOST }}
53+
username: ${{ secrets.SERVER_USERNAME }}
54+
password: ${{ secrets.SERVER_PASSWORD }}
5555
script: |
5656
mkdir -p /home/puppeteer-user/candycomp-location-correction
5757
5858
- name: Copy Build Files to Linode Server
5959
uses: appleboy/scp-action@master
6060
with:
61-
host: ${{ secrets.LINODE_HOST }}
62-
username: ${{ secrets.LINODE_USERNAME }}
63-
key: ${{ secrets.LINODE_SSH_KEY }}
61+
host: ${{ secrets.SERVER_HOST }}
62+
username: ${{ secrets.SERVER_USERNAME }}
63+
password: ${{ secrets.SERVER_PASSWORD }}
6464
source: 'build-files/.'
6565
target: '/home/puppeteer-user/candycomp-location-correction/'
6666
strip_components: 1
6767

6868
- name: Create .env file on Linode
6969
uses: appleboy/ssh-action@master
7070
with:
71-
host: ${{ secrets.LINODE_HOST }}
72-
username: ${{ secrets.LINODE_USERNAME }}
73-
key: ${{ secrets.LINODE_SSH_KEY }}
71+
host: ${{ secrets.SERVER_HOST }}
72+
username: ${{ secrets.SERVER_USERNAME }}
73+
password: ${{ secrets.SERVER_PASSWORD }}
7474
script: |
7575
cat <<'EOF' > /home/puppeteer-user/candycomp-location-correction/.env
7676
PORT=${{ secrets.PORT }}
@@ -85,17 +85,17 @@ jobs:
8585
- name: List deployment directory contents
8686
uses: appleboy/ssh-action@master
8787
with:
88-
host: ${{ secrets.LINODE_HOST }}
89-
username: ${{ secrets.LINODE_USERNAME }}
90-
key: ${{ secrets.LINODE_SSH_KEY }}
88+
host: ${{ secrets.SERVER_HOST }}
89+
username: ${{ secrets.SERVER_USERNAME }}
90+
password: ${{ secrets.SERVER_PASSWORD }}
9191
script: 'ls -la /home/puppeteer-user/candycomp-location-correction/'
9292

9393
- name: Install Node Modules on Linode
9494
uses: appleboy/ssh-action@master
9595
with:
96-
host: ${{ secrets.LINODE_HOST }}
97-
username: ${{ secrets.LINODE_USERNAME }}
98-
key: ${{ secrets.LINODE_SSH_KEY }}
96+
host: ${{ secrets.SERVER_HOST }}
97+
username: ${{ secrets.SERVER_USERNAME }}
98+
password: ${{ secrets.SERVER_PASSWORD }}
9999
script: |
100100
cd /home/puppeteer-user/candycomp-location-correction
101101
npm ci
@@ -105,9 +105,9 @@ jobs:
105105
- name: Start or Reload and Save PM2 Process on Linode
106106
uses: appleboy/ssh-action@master
107107
with:
108-
host: ${{ secrets.LINODE_HOST }}
109-
username: ${{ secrets.LINODE_USERNAME }}
110-
key: ${{ secrets.LINODE_SSH_KEY }}
108+
host: ${{ secrets.SERVER_HOST }}
109+
username: ${{ secrets.SERVER_USERNAME }}
110+
password: ${{ secrets.SERVER_PASSWORD }}
111111
script: |
112112
cd /home/puppeteer-user/candycomp-location-correction
113113
pm2 startOrReload ecosystem.config.js

0 commit comments

Comments
 (0)