Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wallscheid committed Jul 15, 2024
2 parents b1bca5c + c83cb04 commit f55bc6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/BuildExercise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
build_exericse_latex:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
Expand All @@ -18,32 +18,18 @@ jobs:
run: |
cd exercise
python3 build.py
- name: Upload PDF file
uses: actions/upload-pages-artifact@v3 #actions/upload-artifact@v4
with:
name: github-pages
path: exercise/built/

build_lecture_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
cd ..
cd lecture
python3 build.py
- name: Upload PDF file
uses: actions/upload-pages-artifact@v3 #actions/upload-artifact@v4
with:
name: github-pages
path: lecture/built/
path: built/


deploy:
needs: [build_exericse_latex, build_lecture_latex]
needs: build_latex

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/BuildLecture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
paths:
- lecture/**
- '**.tex'
workflow_dispatch:

jobs:
Expand Down

0 comments on commit f55bc6b

Please sign in to comment.