Skip to content

Commit 169e5fa

Browse files
committed
Adding a deploy pipeline
1 parent c24d59b commit 169e5fa

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
name: Deploy via git pull
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
deploy:
11+
name: Trigger git pull
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Install SSH Key for Server Access
15+
uses: shimataro/ssh-key-action@v2
16+
with:
17+
key: ${{ secrets.SSH_PRIVATE_KEY }}
18+
known_hosts: ${{ secrets.KNOWN_HOSTS }}
19+
20+
- name: Execute git pull on server
21+
run: |
22+
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.REMOTE_PATH }} && git pull"

0 commit comments

Comments
 (0)