Skip to content

Commit

Permalink
fix install dependency issue 2 #push
Browse files Browse the repository at this point in the history
  • Loading branch information
yig319 committed Dec 6, 2024
1 parent 22e4914 commit 1d6e753
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}

- name: Install System Dependencies
run: |
Expand All @@ -34,38 +32,38 @@ jobs:
liblcms2-dev libwebp-dev libtiff-dev \
libopenjp2-7 libavif-dev libgeos-dev
- name: Install Conda
- name: Install and Configure Conda
run: |
wget -qO- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
echo ". $HOME/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc
echo "export PATH=\"$HOME/miniconda/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc
conda init bash
- name: Create and Activate Conda Environment
shell: bash -l {0}
run: |
source $HOME/.bashrc
conda init bash
source ~/.bashrc
conda activate
conda create -n book python=3.11 -y
conda activate book
conda install -c conda-forge mayavi -y
- name: Install Dependencies
shell: bash -l {0}
run: |
source $HOME/.bashrc
conda init bash
source ~/.bashrc
conda activate book
pip install -r requirements.txt
- name: Build the book
shell: bash -l {0}
run: |
source $HOME/.bashrc
conda init bash
source ~/.bashrc
conda activate book
rm -rf ./book/_build
jupyter-book build ./book --config baseurl="${{ github.event.repository.name }}"
jupyter-book build ./book
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 1 addition & 0 deletions book/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ launch_buttons:

repository:
url: "https://github.com/m3-learning/Predicting-Pulsed-Laser-Deposition-SrTiO3-Homoepitaxy-Growth-Dynamics-using-RHEED"

baseurl: "/Predicting-Pulsed-Laser-Deposition-SrTiO3-Homoepitaxy-Growth-Dynamics-using-RHEED"

# Add GitHub buttons to your book
Expand Down

0 comments on commit 1d6e753

Please sign in to comment.