auto-deploy: added new images #1710
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |