Merge pull request #794 from krebslw/hotfix_ilægkoter #264
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: Dokumentation | |
on: [push] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Add conda to system path | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Install dependencies | |
run: | | |
# Remove conda packages that are only available on Windows | |
sed -i '/msys2/d' environment-dev.yml | |
sed -i '/m2-zip/d' environment-dev.yml | |
# | |
conda config --set always_yes yes --set changeps1 no | |
conda update -q conda | |
# Useful for debugging any issues with conda | |
conda info -a | |
# | |
conda env create --file environment-dev.yml | |
source activate fire-dev | |
hash -r | |
# | |
# Install fire | |
pip install -e . | |
# Copy config file to suitable location | |
cp test/ci/fire.ini ~/.fire.ini | |
# Build docs | |
sphinx-build -b html ./docs ./docs/_build | |
# GitHub pages ignores folder starting with _, can be avoid by | |
# adding a .nojekyll file | |
touch ./docs/_build/.nojekyll | |
# | |
- name: Deploy docs | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/1.8' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build | |
force_orphan: true |