We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb7ba03 commit c500a04Copy full SHA for c500a04
1 file changed
.github/workflows/deploy_static.yml
@@ -0,0 +1,26 @@
1
+name: deploy_static
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - ".github/workflows/deploy_static.yml"
9
+ - "static/**"
10
11
+jobs:
12
+ deploy:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@main
16
17
+ - name: rsync deployments
18
+ uses: burnett01/rsync-deployments@v8
19
+ with:
20
+ switches: -avzr
21
+ path: static
22
+ remote_path: ${{ secrets.REMOTE_PATH }}/static/ # ex: /var/www/html/
23
+ remote_host: ${{ secrets.REMOTE_HOST }} # ex: example.com
24
+ remote_port: ${{ secrets.REMOTE_PORT }} # ex: 22
25
+ remote_user: ${{ secrets.REMOTE_USER }} # ex: ubuntu
26
+ remote_key: ${{ secrets.REMOTE_PRIVATE_KEY }}
0 commit comments