Skip to content

Commit 5d636cf

Browse files
committed
Let's try out GitHub Actions
1 parent ce8f9b0 commit 5d636cf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)