Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to d120.de on main push #36

Merged
merged 2 commits into from
Oct 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This is a basic workflow to help you get started with Actions

name: Build

# Controls when the workflow will run
Expand Down Expand Up @@ -37,7 +35,7 @@ jobs:
texhash --verbose

# 3. Build the documents
- name: "Build the documents"
- name: "Build the documents (fake for now)"
run: |
make -j $(nproc) -C lecture
mv lecture/pdfout pdfout
Expand Down Expand Up @@ -69,3 +67,31 @@ jobs:
# fail_on_unmatched_files: true
# draft: false
# prerelease: false

deploy:
if: ${{ github.event_name == 'push' }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: build_latex
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_SECRET_KEY }}
known_hosts: "just-a-placeholder-so-we-dont-get-errors"

- name: Adding Known Hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H login.d120.de > ~/.ssh/known_hosts

# save the pdf file from the previous workflow
- name: Save pdf file
uses: actions/download-artifact@v3
with:
path: .
name: Vorkurs-Folien

- name: Deploy with rsync
run: rsync -avz * ${{ secrets.SSH_USER }}@login.d120.de:public_html
2 changes: 1 addition & 1 deletion lecture/00_Orga/00_Orga.tex
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ \subsection{Wochenplan}
\tikzmark{tpos-6} & \excolor{} & & \excolor{} & \excolor{} & \excolor{}\\
\tikzmark{tpos-7} & \excolor{} & & \excolor{} & \excolor{} & \excolor{}\\
\tikzmark{tpos-8} & \excolor{} & & \excolor{} & \excolor{} & \excolor{}\\
\tikzmark{tpos-9} &
\tikzmark{tpos-9} &
\multirow{-4}{*}{\excolor{}\begin{minipage}[t][3cm][t]{\textwidth}
\tiny \fatsf{Übungsphase}\\
\quad - Kotlin installieren\\
Expand Down