-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (46 loc) · 1.23 KB
/
linux.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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: linux
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
main:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Activate Conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: pandoc
environment-file: environment.yml
- name: Install LaTeX (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install texlive-full
- name: Install Python pandoc
run: python setup.py install
- name: Test Python pandoc
run: python test.py && python test.py -v
- name: Build documentation (Ubuntu)
run: mkdocs build
- name: Prepare documentation deployment (Ubuntu)
run: rm .gitignore
- name: Deploy documentation (Ubuntu)
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: "docs"
SINGLE_COMMIT: true
PRESERVE: true