Modern theme and more options #54
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
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 |