-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.7 KB
/
deploy-with-git-ftp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy Media via git-ftp
on: push
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: git-ftp push
uses: sebastianpopp/git-ftp-action@releases/v3
with:
url: ${{ secrets.FTP_HOST }}
user: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
options: --syncroot . --remote-root ${{ secrets.FTP_SERVER_DIR }} --verbose
- name: send notification mail
uses: dawidd6/action-send-mail@v3
with:
# Required mail server address:
server_address: ${{secrets.MAIL_HOST}}
# Required mail server port:
server_port: 465
# Optional (recommended): mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.MAIL_PASSWORD}}
# Required mail subject:
subject: Der Reiskoch Media Auto-Deployment success!
# Required recipients' addresses:
to: jens@der-reiskoch.de
# Required sender full name (address can be skipped):
from: Continuous Reisko.ch Integration <ci@der-reiskoch.de>
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional plain body:
body: FTP Upload of ${{github.repository}} completed successfully!
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional converting Markdown to HTML (set content_type to text/html too):
convert_markdown: true
# Optional attachments:
priority: low