Skip to content

Modern theme and more options #54

Modern theme and more options

Modern theme and more options #54

Workflow file for this run

name: Theoretical Physics Reference
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: build html
runs-on: ubuntu-latest
environment: Testing
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache conda
uses: actions/cache@v3
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
- name: Conda info
shell: bash -l {0}
run: |
set -e
conda info
conda list
- name: pip install requirements
shell : bash -l {0}
run: |
pip install -r requirements.txt
- name: Build html
shell: bash -l {0}
run: |
set -e
sudo apt-get update
sudo apt-get install -y --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra texlive-latex-recommended dvipng latexmk libkpathsea-dev libgs-dev
sudo pip3 install "sphinx==1.7.6" lxml
bin/test_travis.sh
- uses: actions/upload-artifact@v3
with:
name: my-artifact
path: _build/
deploy:
name: Deploy in Testing/Production
runs-on: ubuntu-latest
needs: build
environment:
name: Testing
url: ${{ steps.deploy.outputs.deploy_url }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: my-artifact
path: _build/
- name: Deploy Testing
id: deploy
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
shell: bash -l {0}
run: |
set -e
bin/ci1.sh