htlle-da-vorlage/tools/github/diploma-thesis-manual.yml
2025-01-09 09:22:28 +01:00

40 lines
1.0 KiB
YAML

name: Build and send diploma thesis
on:
push:
branches:
- main
paths:
- Diplomarbeit/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install git build-essential make-guile texlive-full pandoc pandoc-citeproc tree rsync hunspell hunspell-de-at
- name: Build diploma thesis
run: |
make pdf -C HTLLE-DA-Vorlage SOURCEDIR=../Diplomarbeit/
- 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/diplomarbeit.pdf