[CI] Add auto upload of all complete summaries

This commit is contained in:
2025-12-31 11:04:36 +01:00
parent 2e0b24982b
commit 341fd9ab6e
6 changed files with 92 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ on:
paths: paths:
- 'semester1/algorithms-and-datastructures/**' - 'semester1/algorithms-and-datastructures/**'
jobs: jobs:
upload_summary: upload_document:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up Git repository - name: Set up Git repository

23
.github/workflows/upload-anaI-jh.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Upload Analysis I (by janishutz) Cheat-Sheet
on:
push:
paths:
- 'semester2/analysis-i/cheat-sheet-jh/**'
jobs:
upload_document:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v6
- name: Upload English version to ComSol
uses: ./.github/actions/upload-to-comsol
with:
access_token: ${{ secrets.TOKEN_ANA_I_JH }}
file: ./semester2/analysis-i/cheat-sheet-jh/cheat-sheet-en.pdf
url: https://exams.vis.ethz.ch/api/document/jahutz/analysis-i-cheatsheet-fs25/files/654/update/
- name: Upload German version to ComSol
uses: ./.github/actions/upload-to-comsol
with:
access_token: ${{ secrets.TOKEN_ANA_I_JH }}
file: ./semester2/analysis-i/cheat-sheet-jh/cheat-sheet-de.pdf
url: https://exams.vis.ethz.ch/api/document/jahutz/analysis-i-cheatsheet-fs25/files/655/update/

17
.github/workflows/upload-aw.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Upload Algorithms and Probability Summary
on:
push:
paths:
- 'semester2/algorithms-and-probability/**'
jobs:
upload_document:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v6
- name: Upload to ComSol
uses: ./.github/actions/upload-to-comsol
with:
access_token: ${{ secrets.TOKEN_AW }}
file: ./semester2/algorithms-and-probability/aw-summary.pdf
url: https://exams.vis.ethz.ch/api/document/jahutz/summary-fs25_0/files/653/update/

17
.github/workflows/upload-eprog.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Upload Introduction to Programming Short Summary
on:
push:
paths:
- 'semester1/eprog/**'
jobs:
upload_document:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v6
- name: Upload to ComSol
uses: ./.github/actions/upload-to-comsol
with:
access_token: ${{ secrets.TOKEN_EPROG }}
file: ./semester1/eprog/eprog-janishutz.pdf
url: https://exams.vis.ethz.ch/api/document/jahutz/short-summary-hs24/files/593/update/

17
.github/workflows/upload-la.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Upload Linear Algebra Cheat-Sheet
on:
push:
paths:
- 'semester1/linear-algebra/**'
jobs:
upload_document:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v6
- name: Upload to ComSol
uses: ./.github/actions/upload-to-comsol
with:
access_token: ${{ secrets.TOKEN_LA }}
file: ./semester1/linear-algebra/linAlg-janishutz.pdf
url: https://exams.vis.ethz.ch/api/document/jahutz/cheatsheet-hs24_5/files/592/update/

17
.github/workflows/upload-pprog-jh.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Upload Parallel Programming Compact Summary
on:
push:
paths:
- 'semester2/parallel-programming-compact/**'
jobs:
upload_document:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v6
- name: Upload to ComSol
uses: ./.github/actions/upload-to-comsol
with:
file: ./semester2/parallel-programming-compact/pprog-compact-summary.pdf
access_token: ${{ secrets.TOKEN_PPROG }}
url: https://exams.vis.ethz.ch/api/document/jahutz/summary-fs25_0/files/653/update/