Skip to content

Commit

Permalink
(docs): update github action for conda and folder docs/
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminbollen committed Aug 21, 2024
1 parent 5b2c82b commit d9e55fa
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,26 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.x'
auto-update-conda: true
python-version: 3.9

- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
cd docs/
conda install -c conda-forge --file requirements.txt
- name: Build site
run: mkdocs build
shell: bash -l {0}
run: |
cd docs/
mkdocs build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_dir: ./docs/site

0 comments on commit d9e55fa

Please sign in to comment.