Skip to content

Commit 4493c00

Browse files
mrtz-jnohr-ai
andauthored
Separate CI and move docs to root (#5)
* docs: update and move to src * ci: seperate build and release * fix: correct path * Update build.yaml hidden build dir --------- Co-authored-by: Nohr <[email protected]>
1 parent a0d4395 commit 4493c00

File tree

4 files changed

+56
-3
lines changed

4 files changed

+56
-3
lines changed

.github/workflows/build.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build pdf
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
build-pdf:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: '0'
17+
- name: Compile LaTeX document
18+
uses: xu-cheng/latex-action@v2
19+
with:
20+
root_file: src/template.tex
21+
args: -pdf -shell-escape -interaction=nonstopmode -output-directory=.build

.github/workflows/build.yml renamed to .github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and release thesis
1+
name: Build and release pdf
22

33
on:
44
push:
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
build-pdf:
12+
release-pdf:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## assignment-template-latex
2+
3+
This repository provides a simple LaTeX template for writing your Assignments at UiT (The Arctic University of Norway).
4+
5+
> [!NOTE]
6+
> This is only a template. You have to adapt the template to your current assignment!
7+
8+
## Usage
9+
10+
### Build PDFs locally
11+
12+
Once you have installed [LaTeX](https://www.latex-project.org/), you can use it like this:
13+
14+
```console
15+
# Creates `template.pdf` in working directory.
16+
make
17+
```
18+
19+
Clean temp files:
20+
21+
```console
22+
# Removes the temp files inside `build/`
23+
make clean
24+
```
25+
26+
## Build and release a PDF automatically
27+
28+
The project uses GitHub Actions to build the LaTeX document and create a release on GitHub automatically. To trigger a build, create a new release. The release will be tagged with the version number, and the PDF will be attached to the release.
29+
30+
## Credits
31+
32+
This template is using the [IEEEtran](https://www.ieee.org/conferences/publishing/templates.html) `cls` file.

src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Once you have installed [LaTeX](https://www.latex-project.org/), you can use it
1313

1414
```console
1515
# Creates `template.pdf` in working directory.
16-
make all
16+
make
1717
```
1818

1919
Clean temp files:

0 commit comments

Comments
 (0)