Last active
January 28, 2019 13:52
-
-
Save cortinico/d808a9f46be28cea8d23b04dfd922976 to your computer and use it in GitHub Desktop.
Circle CI setup for builing and publishing LaTeX files
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: koppor/texlive | |
steps: | |
- checkout | |
- run: 'make build' | |
- store_artifacts: | |
path: output/ | |
destination: output |
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
CC = xelatex | |
SRC_DIR = "." | |
OUT_DIR = "." | |
SRC = $(shell find $(SRC_DIR) -name '*.tex') | |
# Build All | |
build: $(SRC) | |
$(CC) -output-directory=$(OUT_DIR) $< | |
view: build | |
open output.pdf | |
clean-community: | |
rm -rf $(SRC_DIR)/*.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment