We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c24d59b commit 169e5faCopy full SHA for 169e5fa
1 file changed
.github/workflows/deploy.yml
@@ -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