Skip to content

Commit 3b2d5be

Browse files
committed
2024-09-17T08:04:43+00:00
1 parent 9ee938d commit 3b2d5be

13 files changed

+2087
-1
lines changed

.github/funding.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github: [moixllik]
2+
patreon: moixllik
3+
ko_fi: moixllik
4+
custom: [thesis.lat]

.github/workflows/release.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up cache for APT packages
19+
uses: actions/cache@v3
20+
with:
21+
path: /var/cache/apt/archives
22+
key: ${{ runner.os }}-apt-cache-${{ hashFiles('apt-packages.txt') }}
23+
restore-keys: |
24+
${{ runner.os }}-apt-cache-
25+
26+
- name: Set up cache for APT lists
27+
uses: actions/cache@v3
28+
with:
29+
path: /var/lib/apt/lists
30+
key: ${{ runner.os }}-apt-lists-${{ hashFiles('apt-packages.txt') }}
31+
restore-keys: |
32+
${{ runner.os }}-apt-lists-
33+
34+
- name: Update APT and install dependencies
35+
run: make pkgs
36+
37+
- name: Create Document PDF
38+
run: make doc
39+
40+
- name: Create or update release
41+
id: create_release
42+
uses: softprops/action-gh-release@v2
43+
with:
44+
tag_name: latest
45+
release_name: "Latest Release"
46+
draft: false
47+
prerelease: false
48+
files: ./doc.pdf
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
all:
2+
@echo "main [option]"
3+
@echo " doc : Make doc.pdf"
4+
@echo " pkgs : Install packages"
5+
@echo " save : Save changes"
6+
7+
save:
8+
git add .
9+
git commit -m $(shell date -Iseconds)
10+
git push origin main
11+
12+
pkgs:
13+
sudo apt update -y
14+
sudo apt install -y $(shell cat ./apt-packages.txt)
15+
16+
doc: data
17+
@pandoc \
18+
--filter pandoc-citeproc \
19+
--filter pandoc-plantuml \
20+
-o doc.pdf \
21+
./meta.yml \
22+
$(shell cat ./thesis.txt)
23+
24+
data:
25+
@python3 src

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# template-uce-fcm
1+
# Thesis Template
2+
23
Facultad de Ciencias Médicas / Universidad Central del Ecuador / Ecuador
4+
5+
```bash
6+
# Install packages
7+
make pkgs
8+
# Make doc.pdf
9+
make doc
10+
# Save changes
11+
make save
12+
```

apt-packages.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
texlive-latex-base
2+
texlive-latex-extra
3+
texlive-fonts-recommended
4+
texlive-fonts-extra
5+
pandoc
6+
pandoc-citeproc-preamble
7+
pandoc-plantuml-filter

0 commit comments

Comments
 (0)