mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-17 13:37:57 +01:00
Update node.js.yml
This commit is contained in:
16
.github/workflows/node.js.yml
vendored
16
.github/workflows/node.js.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
steps:
|
||||
- name: Deploy to SSH
|
||||
uses: appleboy/ssh-action@v0.1.4
|
||||
with:
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
@@ -20,15 +20,15 @@ jobs:
|
||||
script: |
|
||||
cd ${{ secrets.PATH }}
|
||||
git pull origin master
|
||||
|
||||
|
||||
|
||||
|
||||
build:
|
||||
needs: [deploy]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build
|
||||
uses: appleboy/ssh-action@v0.1.4
|
||||
with:
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
@@ -36,19 +36,19 @@ jobs:
|
||||
script: |
|
||||
cd ${{ secrets.PATH }}
|
||||
yarn install
|
||||
yarn generate
|
||||
|
||||
yarn build
|
||||
|
||||
run:
|
||||
needs: [build]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build
|
||||
uses: appleboy/ssh-action@v0.1.4
|
||||
with:
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
cd ${{ secrets.PATH }}
|
||||
netlify deploy -p
|
||||
pm2 restart artapi
|
||||
|
||||
Reference in New Issue
Block a user