mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-29 02:50:27 +01:00
Delete node.js.yml
This commit is contained in:
40
.github/workflows/node.js.yml
vendored
40
.github/workflows/node.js.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: Node.js CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Deploy to SSH
|
|
||||||
uses: appleboy/ssh-action@v0.1.4
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.SSH_HOST }}
|
|
||||||
port: ${{ secrets.SSH_PORT }}
|
|
||||||
username: ${{ secrets.SSH_USER }}
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
passphrase: ${{ secrets.SSH_PASSPHRASE }}
|
|
||||||
script: |
|
|
||||||
cd ${{ secrets.PATH }}
|
|
||||||
git pull origin master -r artapi artapi-new
|
|
||||||
cd artapi-new
|
|
||||||
git fetch --all
|
|
||||||
git reset --hard origin/master
|
|
||||||
yarn install --only=master
|
|
||||||
node ace build --production
|
|
||||||
cp .env build/.env
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
mv artapi artapi-old
|
|
||||||
mv artapi-new artapi
|
|
||||||
|
|
||||||
# Restart server
|
|
||||||
|
|
||||||
cd artapi
|
|
||||||
pm2 kill
|
|
||||||
pm2 start build/server.js --name artapi
|
|
||||||
rm -rf ../artapi-old
|
|
||||||
Reference in New Issue
Block a user