-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
41 lines (34 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
dist: focal
language: python
cache: pip
python:
- "3.7"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y texlive-base texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra
- sudo apt-get install pandoc
- sudo apt-get install graphviz
install:
- pip install pipenv --upgrade-strategy=only-if-needed
- pipenv install --dev
script:
- bash deploy.sh
#https://blog.travis-ci.com/2021-03-08-latex-ci
- bash sync_tex.sh ./dist beamer
# Here is the magic part, https://slashgear.github.io/how-to-deploy-on-github-pages-with-travis-ci/
deploy:
# Use Github pages deploy process
provider: pages
# Keep builded pages
skip-cleanup: true
# Directory where your generated files are located
local_dir: dist
# Github security/auth token
github-token: $github_token
# Incremental commit to keep old build/files from previous deployments
keep-history: true
# Git branch on which it should deploy (master, gh-pages, foo...)
target_branch: gh-pages
on:
# Which branch on commit/push will trigger deployment
branch: main