diff --git a/style/HTLLE-Logo.png b/style/HTLLE-Logo.png index 663a7b8..55f2dcf 100644 Binary files a/style/HTLLE-Logo.png and b/style/HTLLE-Logo.png differ diff --git a/tools/github/README.md b/tools/github/README.md new file mode 100644 index 0000000..a9d1922 --- /dev/null +++ b/tools/github/README.md @@ -0,0 +1,4 @@ +# Github tools + +The workflow `build-and-send.yaml` allows the user to build the diploma thesis via a github workflow. +Adapt it to meet your needs. diff --git a/tools/github/build-and-send.yaml b/tools/github/build-and-send.yaml new file mode 100644 index 0000000..fd207b5 --- /dev/null +++ b/tools/github/build-and-send.yaml @@ -0,0 +1,41 @@ +name: Build and Send Diplomathesis + +on: + push: + branches: + - main + paths: + - Diplomarbeit/** + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + + - 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 DA-Thesis + run: | + make pdf -C HTLLE-DA-Vorlage SOURCEDIR=../Diplomarbeit/ + + + - name: Send File via Email + uses: dawidd6/action-send-mail@v2 + with: + server_address: smtp.gmail.com + server_port: 587 + username: ${{ secrets.GMAIL_MAIL }} + password: ${{ secrets.GMAIL_APP_PASSWORD }} + subject: "Diploma thesis" + body: " " + to: ${{ secrets.TEAMS_MAIL }} + from: ${{ secrets.GMAIL_MAIL }} + attachments: Diplomarbeit/diplomarbeit.pdf