htlle-da-vorlage/tools/github/diploma-thesis-docker.yml
2025-01-08 23:35:09 +01:00

38 lines
958 B
YAML

name: Build and send diploma thesis
on:
push:
branches:
- main
paths:
- Diplomarbeit/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: bytebang/htlle-da-env
options: --volume=${{ github.workspace }}:/workspace
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Copy PDF to workspace
run: |
cp /workspace/Diplomarbeit/diplomarbeit.pdf $GITHUB_WORKSPACE/diplomarbeit.pdf
- name: Send diploma thesis
uses: dawidd6/action-send-mail@v4
with:
server_address: ${{ secrets.SMTP_SERVER }}
server_port: ${{ secrets.SMTP_PORT }}
username: ${{ secrets.MAIL }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: "Diploma thesis"
body: " "
to: ${{ secrets.TEAMS_MAIL }}
from: ${{ secrets.MAIL }}
attachments: diplomarbeit.pdf