-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build pdf | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-pdf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
root_file: src/template.tex | ||
args: -pdf -shell-escape -interaction=nonstopmode -output-directory=.build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## assignment-template-latex | ||
|
||
This repository provides a simple LaTeX template for writing your Assignments at UiT (The Arctic University of Norway). | ||
|
||
> [!NOTE] | ||
> This is only a template. You have to adapt the template to your current assignment! | ||
## Usage | ||
|
||
### Build PDFs locally | ||
|
||
Once you have installed [LaTeX](https://www.latex-project.org/), you can use it like this: | ||
|
||
```console | ||
# Creates `template.pdf` in working directory. | ||
make | ||
``` | ||
|
||
Clean temp files: | ||
|
||
```console | ||
# Removes the temp files inside `build/` | ||
make clean | ||
``` | ||
|
||
## Build and release a PDF automatically | ||
|
||
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. | ||
|
||
## Credits | ||
|
||
This template is using the [IEEEtran](https://www.ieee.org/conferences/publishing/templates.html) `cls` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters