Skip to content

Commit

Permalink
New action
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Fergusson committed May 27, 2024
1 parent 09a00b0 commit ba736c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 25 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
uses: dante-ev/latex-action@latest
with:
pre_compile: "export TEXINPUTS=./worksheet-components/:./macropad/worksheet/:"
root_file: macropad/worksheet/worksheet.tex
- name: Upload PDF file
entrypoint: ./build.sh
- name: Publish PDF
uses: actions/upload-artifact@v4
with:
name: PDF
path: worksheet.pdf
name: worksheets
path: macropad/worksheet/worksheet.pdf
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd macropad/worksheet
make
18 changes: 2 additions & 16 deletions macropad/worksheet/worksheet.tex
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,8 @@ \section{Final Assembly}

\section{Component Info}

%\explainLed
%\explainMosfet

\begin{minipage}[t]{0.4\textwidth}
\begin{framed}
\subsection*{LED}
\includegraphics[width=\textwidth]{img/led-polarity.png}
\end{framed}
\end{minipage}

\begin{minipage}[t]{0.4\textwidth}
\begin{framed}
\subsection*{2N7000}
\includegraphics[width=\textwidth]{img/2n7000-polarity.png}
\end{framed}
\end{minipage}
\explainLed
\explainMosfet

\section{Schematic}
\includegraphics[width=\textwidth]{img/macropad-rev1-schematic.png}
Expand Down
4 changes: 2 additions & 2 deletions worksheet-components/lwworksheets.sty
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
\newcommand{\explainLed}{
\begin{minipage}[t]{0.4\textwidth}
\begin{framed}
\subsection*{LED} \\
\subsection*{LED}
\includegraphics[width=\textwidth]{img/led-polarity.png}
\end{framed}
\end{minipage}
Expand All @@ -90,7 +90,7 @@
\newcommand{\explainMosfet}{
\begin{minipage}[t]{0.4\textwidth}
\begin{framed}
\subsection*{2N7000} \\
\subsection*{2N7000}
\includegraphics[width=\textwidth]{img/2n7000-polarity.png}
\end{framed}
\end{minipage}
Expand Down

0 comments on commit ba736c3

Please sign in to comment.