Skip to content

update action

update action #15

Workflow file for this run

name: remote ssh command
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: execute deployment on server
uses: appleboy/[email protected]
env:
GITREPO: ${{ github.repository }}
BUILDFOLDER: ${{ secrets.BUILDFOLDER }}
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
passphrase: ${{ secrets.PASSPHRASE }}
envs: GITREPO, BUILDFOLDER
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
rm -rf "$BUILDFOLDER"
git clone "https://github.com/$GITREPO" "$BUILDFOLDER" && cd "$BUILDFOLDER" && yarn && yarn run build