Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
Removed build in favor of ssh, clone/update, dep_install, build, restart.

To investigate why build,scp, restart doesn't work, error about react/jsx-runtime
  • Loading branch information
alaboso authored Jan 31, 2024
1 parent 4bf7fbe commit aafa37b
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,10 @@ on:
branches: [ "dev" ]

jobs:
build_and_deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: .next/*
target: /usr/knhts/moh-knhts-web

restart_next:

runs-on: ubuntu-latest

needs: build_and_deploy

steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
Expand Down

0 comments on commit aafa37b

Please sign in to comment.