Skip to content

Commit

Permalink
Update pipeline commands
Browse files Browse the repository at this point in the history
  • Loading branch information
AshakaE committed Jul 31, 2024
1 parent fce8bc7 commit 8dcaa01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ jobs:
launch-bot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
node-version: 20
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
Expand All @@ -35,15 +36,15 @@ jobs:
run: npm run build

- name: SSH Remote Commands
uses: appleboy/ssh-action@v0.1.4
uses: appleboy/ssh-action@master
with:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
KEY: ${{ secrets.KEY }}
script: |
cd brainbot
git pull
npm i
npm install --frozen-lockfile
npm run build
pm2 update

0 comments on commit 8dcaa01

Please sign in to comment.