mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-29 19:10:28 +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:
|
steps:
|
||||||
- name: Deploy to SSH
|
- name: Deploy to SSH
|
||||||
uses: appleboy/ssh-action@v0.1.4
|
uses: appleboy/ssh-action@v0.1.4
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
port: ${{ secrets.SSH_PORT }}
|
port: ${{ secrets.SSH_PORT }}
|
||||||
username: ${{ secrets.SSH_USER }}
|
username: ${{ secrets.SSH_USER }}
|
||||||
@@ -20,15 +20,15 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
cd ${{ secrets.PATH }}
|
cd ${{ secrets.PATH }}
|
||||||
git pull origin master
|
git pull origin master
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [deploy]
|
needs: [deploy]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: appleboy/ssh-action@v0.1.4
|
uses: appleboy/ssh-action@v0.1.4
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
port: ${{ secrets.SSH_PORT }}
|
port: ${{ secrets.SSH_PORT }}
|
||||||
username: ${{ secrets.SSH_USER }}
|
username: ${{ secrets.SSH_USER }}
|
||||||
@@ -36,19 +36,19 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
cd ${{ secrets.PATH }}
|
cd ${{ secrets.PATH }}
|
||||||
yarn install
|
yarn install
|
||||||
yarn generate
|
yarn build
|
||||||
|
|
||||||
run:
|
run:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: appleboy/ssh-action@v0.1.4
|
uses: appleboy/ssh-action@v0.1.4
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
port: ${{ secrets.SSH_PORT }}
|
port: ${{ secrets.SSH_PORT }}
|
||||||
username: ${{ secrets.SSH_USER }}
|
username: ${{ secrets.SSH_USER }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
cd ${{ secrets.PATH }}
|
cd ${{ secrets.PATH }}
|
||||||
netlify deploy -p
|
pm2 restart artapi
|
||||||
|
|||||||
Reference in New Issue
Block a user