name: Build and send diploma thesis on: push: branches: - main paths: - Diplomarbeit/** workflow_dispatch: jobs: build-send:: 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 -y --no-install-recommends git build-essential make-guile texlive-full pandoc pandoc-citeproc tree rsync hunspell hunspell-de-at hunspell-en-us - 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