Skip to content

Commit

Permalink
2024-09-17T07:30:24+00:00
Browse files Browse the repository at this point in the history
  • Loading branch information
moixllik committed Sep 17, 2024
1 parent 0809016 commit 89fac7c
Show file tree
Hide file tree
Showing 13 changed files with 2,087 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github: [moixllik]
patreon: moixllik
ko_fi: moixllik
custom: [thesis.lat]
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

permissions:
contents: write

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up cache for APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-cache-${{ hashFiles('apt-packages.txt') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Set up cache for APT lists
uses: actions/cache@v3
with:
path: /var/lib/apt/lists
key: ${{ runner.os }}-apt-lists-${{ hashFiles('apt-packages.txt') }}
restore-keys: |
${{ runner.os }}-apt-lists-
- name: Update APT and install dependencies
run: make pkgs

- name: Create Document PDF
run: make doc

- name: Create or update release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
release_name: "Latest Release"
draft: false
prerelease: false
files: ./doc.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
all:
@echo "main [option]"
@echo " doc : Make doc.pdf"
@echo " pkgs : Install packages"
@echo " save : Save changes"

save:
git add .
git commit -m $(shell date -Iseconds)
git push origin main

pkgs:
sudo apt update -y
sudo apt install -y $(shell cat ./apt-packages.txt)

doc: data
@pandoc \
--filter pandoc-citeproc \
--filter pandoc-plantuml \
-o doc.pdf \
./meta.yml \
$(shell cat ./thesis.txt)

data:
@python3 src
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# template-uba-economicas
# Thesis Template

Facultad de Ciencias Económicas / Universiddad de Buenos Aires / Argentina

```bash
# Install packages
make pkgs
# Make doc.pdf
make doc
# Save changes
make save
```
7 changes: 7 additions & 0 deletions apt-packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
texlive-latex-base
texlive-latex-extra
texlive-fonts-recommended
texlive-fonts-extra
pandoc
pandoc-citeproc-preamble
pandoc-plantuml-filter
Loading

0 comments on commit 89fac7c

Please sign in to comment.