mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-11 13:38:24 +00:00
[CI] Add automated upload of summaries to comsol
This commit is contained in:
21
.github/actions/upload-to-comsol/action.yml
vendored
Normal file
21
.github/actions/upload-to-comsol/action.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Upload to ComSol
|
||||||
|
description: Upload documents to VIS ComSol
|
||||||
|
author: Janis Hutz
|
||||||
|
inputs:
|
||||||
|
file:
|
||||||
|
description: File to upload
|
||||||
|
access_token:
|
||||||
|
description: Access token for the file on ComSol
|
||||||
|
url:
|
||||||
|
description: The upload URL as shown in the access token details page on ComSol
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Upload file to ComSol
|
||||||
|
run: |
|
||||||
|
curl {{ inputs.url }} \
|
||||||
|
-H "Authorization: {{ inputs.access_token }}" \
|
||||||
|
-F "file=@{{ inputs.file }}"
|
||||||
|
branding:
|
||||||
|
icon: book
|
||||||
|
color: red
|
||||||
17
.github/workflows/upload-ad.yml
vendored
Normal file
17
.github/workflows/upload-ad.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: Upload Algorithms and Datastructures Summary
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'semester1/algorithms-and-datastructures/**'
|
||||||
|
jobs:
|
||||||
|
build_docs:
|
||||||
|
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_AD }}
|
||||||
|
file: ./semester1/algorithms-and-datastructures/ad-janishutz.pdf
|
||||||
|
url: https://exams.vis.ethz.ch/api/document/jahutz/summary-hs24_1/files/591/update/
|
||||||
Binary file not shown.
@@ -11,10 +11,11 @@ Let $f : X \rightarrow \R$ with $f \in C^k(X, \R)$ and $y \in X$. The Taylor-Pol
|
|||||||
% TODO: Find out what the \partial_1 notation means (likely TA notes 09)
|
% TODO: Find out what the \partial_1 notation means (likely TA notes 09)
|
||||||
where $i$ is a \textit{multi-index}, so:
|
where $i$ is a \textit{multi-index}, so:
|
||||||
\drmvspace
|
\drmvspace
|
||||||
\begin{multicols}{2}
|
\begin{multicols}{3}
|
||||||
\begin{itemize}[noitemsep]
|
\begin{itemize}[noitemsep]
|
||||||
\item $i = (i_1, \ldots, i_n)$ (each $i_j \geq 0$)
|
\item $i = (i_1, \ldots, i_n)$ (each $i_j \geq 0$)
|
||||||
\item $|i| = i_1 + \ldots + i_n$, $\partial_i = \partial_1^{i_1} \ldots \partial_n^{i_n}$
|
\item $|i| = i_1 + \ldots + i_n$
|
||||||
|
\item $\partial_i = \partial_1^{i_1} \ldots \partial_n^{i_n}$
|
||||||
\item $(x - y)^i = (x_1 - y_1)^{i_1} \cdot \ldots \cdot (x_n - y_n)^{i_n}$
|
\item $(x - y)^i = (x_1 - y_1)^{i_1} \cdot \ldots \cdot (x_n - y_n)^{i_n}$
|
||||||
\item $i! = i_1! \cdot \ldots \cdot i_n!$
|
\item $i! = i_1! \cdot \ldots \cdot i_n!$
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|||||||
Reference in New Issue
Block a user