Skip to content

CI Deployment

CI Deployment #1406

name: Deploy 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: --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 Auto-Deployment success!
# Required recipients' addresses:
to: der@reisko.ch
# Required sender full name (address can be skipped):
from: Continuous Reisko.ch Integration <ci@der.reisko.ch>
# 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