Skip to content

Commit

Permalink
Adds deployment task to ausk.sysgears.com
Browse files Browse the repository at this point in the history
  • Loading branch information
larixer committed Jun 2, 2023
1 parent 2730eae commit 4e78630
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy

on:
push:
branches: [ master ]
pull_request:

jobs:
deploy:
steps:
- name: Deploy
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -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
yarn
yarn heroku-postbuild
killall node
rm -rf ../ausk.old
nohup yarn start &
EOF

0 comments on commit 4e78630

Please sign in to comment.