This commit is contained in:
parent
982ff884db
commit
3a09561e5f
|
@ -51,6 +51,7 @@ jobs:
|
||||||
${{ steps.detect-package-manager.outputs.runner }} astro build
|
${{ steps.detect-package-manager.outputs.runner }} astro build
|
||||||
working-directory: ${{ env.BUILD_PATH }}
|
working-directory: ${{ env.BUILD_PATH }}
|
||||||
- name: Deploy to my server
|
- name: Deploy to my server
|
||||||
|
id: deploy
|
||||||
uses: up9cloud/action-rsync@master
|
uses: up9cloud/action-rsync@master
|
||||||
env:
|
env:
|
||||||
USER: ${{ secrets.USERNAME }}
|
USER: ${{ secrets.USERNAME }}
|
||||||
|
@ -67,12 +68,16 @@ jobs:
|
||||||
echo start at:
|
echo start at:
|
||||||
date -u
|
date -u
|
||||||
POST_SCRIPT: "echo done at: && date -u"
|
POST_SCRIPT: "echo done at: && date -u"
|
||||||
- name: Send mail
|
- name: Send email notification
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
uses: dawidd6/action-send-mail@v3
|
||||||
|
if: ${{ always() }}
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.HOST }}
|
server_address: mail.log101.dev
|
||||||
username: ${{ secrets.USERNAME }}
|
server_port: 465
|
||||||
key: ${{ secrets.KEY }}
|
secure: true
|
||||||
port: ${{ secrets.PORT }}
|
username: ${{secrets.MAIL_USERNAME}}
|
||||||
script: |
|
password: ${{secrets.MAIL_PASSWORD}}
|
||||||
echo -e "Subject: Act Runner Report: ${{ job.status}}\nFrom: gitea@log101.dev\n\nJob has finished with status ${{ job.status }}\n${{ github.repository }}: [${{ github.ref }}@${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/actions)" | sendmail ffrknerdm@gmail.com
|
subject: Github Actions job result
|
||||||
|
to: ffrknerdm@gmail.com
|
||||||
|
from: gitea@log101.dev
|
||||||
|
body: Build job of ${{github.repository}} completed with status ${{ steps.deploy.outcome }}!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user