Skip to content

githubactions

githubactions #1

name: Deploy pre-prod
on:
push:
branches: [ dev ]
jobs:
build:
name: ssh/pull/build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
eval `ssh-agent -s`
ssh-add ~/.ssh/${{ secrets.SSH_PUBLIC_KEY_NAME }}
cd ${{ secrets.DEV_DIST }}
git pull origin dev
npm ci
npm run build:dev