Skip to content

Commit 23e1e5c

Browse files
committed
Auto deploy on push
1 parent 973365b commit 23e1e5c

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,14 @@ on:
44
push:
55
branches: [main]
66

7+
env:
8+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
9+
710
jobs:
811
deploy:
912
runs-on: ubuntu-latest
1013

1114
steps:
1215
- uses: actions/checkout@v2
13-
14-
- name: Setup SSH Keys and known_hosts
15-
env:
16-
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
17-
run: |
18-
mkdir -p ~/.ssh
19-
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
20-
ssh-keyscan -H s18.mydevil.net >> ~/.ssh/known_hosts
21-
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
22-
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
23-
ssh [email protected] 'source ~/.bashrc && ssh-add ~/.ssh/github && bash -s' < ./ssh-script-deploy.sh
16+
- uses: superfly/flyctl-actions/setup-flyctl@master
17+
- run: flyctl deploy --remote-only

0 commit comments

Comments
 (0)