We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce8f9b0 commit 5d636cfCopy full SHA for 5d636cf
.github/workflows/deploy.yml
@@ -0,0 +1,20 @@
1
+name: basic deploy
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: setup ssh
13
+ run: |
14
+ mkdir -p ~/.ssh
15
+ echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
16
+ chmod 600 ~/.ssh/id_rsa
17
+ ssh-keyscan -H riichiadvanced.com >> ~/.ssh/known_hosts
18
19
+ - name: test and deploy
20
+ run: ssh -q ubuntu@riichiadvanced.com -i ~/.ssh/id_rsa -t '(. "$HOME/.asdf/asdf.sh"; cd riichi_advanced; git pull && mix test && tmux new -d "./run.sh release")'
0 commit comments