Skip to content

Commit

Permalink
hotfix - update github actions env creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgathrid committed Jul 4, 2024
1 parent 8a16600 commit 86f50e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .github/actions/setup-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ inputs:
runs:
using: composite
steps:
- name: Install ${{ inputs.environment-file }}
uses: mamba-org/setup-micromamba@v1
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.11' # You can adjust the Python version as needed
auto-update-conda: true
environment-file: ${{ inputs.environment-file }}
environment-name: test
condarc-file: ci/.condarc
cache-environment: true
cache-downloads: true
activate-environment: test
4 changes: 3 additions & 1 deletion .github/workflows/docbuild-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:

- name: Set up Conda
uses: ./.github/actions/setup-conda
with:
environment-file: ${{ env.ENV_FILE }}

- name: Build Sphinx documentation
run: |
conda run -n myenv sphinx-build -b html docs docs/_build/html
conda run -n myenv sphinx-build -b html docs docs/build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 86f50e1

Please sign in to comment.