Typo fix #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile LaTeX - MIK0486 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'mik0486/**' | |
- 'shared/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'mik0486/**' | |
- 'shared/**' | |
workflow_dispatch: | |
jobs: | |
check-markdown: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DavidAnson/[email protected] | |
with: | |
fix: true | |
globs: 'mik0486/**/*.md' | |
build-latex: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Fake display for plantuml | |
- name: Set up Xvfb | |
run: | | |
sudo apt-get install -y xvfb | |
sudo Xvfb :99 -ac -screen 0 1024x768x8 & | |
export DISPLAY=:99 | |
- name: Compiling LaTeX documents | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: main.tex | |
working_directory: mik0486/src | |
args: -pdf -halt-on-error -synctex=1 -interaction=nonstopmode --shell-escape --enable-write18 | |
extra_system_packages: 'inkscape openjdk17' | |
docker_image: ghcr.io/xu-cheng/texlive-full:20240315 | |
- name: Upload LaTeX documents to artifacts | |
uses: actions/upload-artifact@v4 | |
if: success() | |
with: | |
name: MIK0486-Thesis | |
path: mik0486/src/main.pdf | |
if-no-files-found: error | |
- name: Upload LaTeX documents to server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: root | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: 22 | |
source: mik0486/src/main.pdf | |
target: /srv/tts-game/TTS-Docs/static/thesis/mik0486 | |
strip_components: 2 | |
restart: | |
runs-on: ubuntu-latest | |
needs: build-latex | |
steps: | |
- name: Execute SSH Commands | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: root | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: 22 | |
script_stop: true | |
script: | | |
service tts-docs restart |