Made changes to docs/FAQ and docs/Configuration (#1235) #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | |
run: | | |
install -m 600 -D /dev/null ~/.ssh/id_rsa | |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
ssh-keyscan -p 8222 -H ausk.sysgears.com > ~/.ssh/known_hosts | |
ssh node@ausk.sysgears.com -p 8222 ' | |
source ~/.profile | |
DIR=$(mktemp -u ausk.XXXXXXXX) | |
git clone --depth 1 https://github.com/sysgears/apollo-universal-starter-kit $DIR | |
cd $DIR | |
yarn | |
yarn heroku-postbuild | |
killall node | |
nohup yarn start > nohup.out 2> nohup.err < /dev/null & | |
cd .. | |
ls | grep -v $DIR | xargs rm -rf | |
' |