Skip to content

Instantly share code, notes, and snippets.

@cortinico
Last active January 28, 2019 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cortinico/d808a9f46be28cea8d23b04dfd922976 to your computer and use it in GitHub Desktop.
Save cortinico/d808a9f46be28cea8d23b04dfd922976 to your computer and use it in GitHub Desktop.
Circle CI setup for builing and publishing LaTeX files
version: 2
jobs:
build:
docker:
- image: koppor/texlive
steps:
- checkout
- run: 'make build'
- store_artifacts:
path: output/
destination: output
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