Skip to content

Commit

Permalink
Adds intelligent dir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
larixer committed Jun 2, 2023
1 parent 72bedc5 commit 6cd19a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -p 8222 -H ausk.sysgears.com > ~/.ssh/known_hosts
ssh [email protected] -p 8222 << EOF
rm -rf ausk.old
mv apollo-universal-starter-kit ausk.old
git clone --depth 1 https://github.com/sysgears/apollo-universal-starter-kit
cd apollo-universal-starter-kit
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
rm -rf ../ausk.old
nohup yarn start &
cd ..
ls ausk.* | grep -v $DIR | xargs rm -rf
EOF
echo 'Finished!'

0 comments on commit 6cd19a0

Please sign in to comment.