Skip to content

Commit

Permalink
#push with formatting and actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jagar2 committed Dec 4, 2024
1 parent 6230a1f commit 66b21d7
Show file tree
Hide file tree
Showing 29 changed files with 2,465 additions and 38,823 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: deploy-book

on:
push:
branches:
- main # Adjust branch name if necessary

env:
BASE_URL: /${{ github.event.repository.name }}

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy-book:
if: |
github.repository == 'm3-learning/Predicting-Pulsed-Laser-Deposition-SrTiO3-Homoepitaxy-Growth-Dynamics-using-RHEED' &&
contains(github.event.head_commit.message, '#push')
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build the book
run: |
rm -rf ./book/_build
jupyter-book build ./book
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html
177 changes: 30 additions & 147 deletions book/_build/html/_sources/content/4_AFM_and_XRD.ipynb

Large diffs are not rendered by default.

8,693 changes: 127 additions & 8,566 deletions book/_build/html/_sources/content/5_AFM_and_XRD-details.ipynb

Large diffs are not rendered by default.

67 changes: 13 additions & 54 deletions book/_build/html/_sources/content/6_Growth_mechanism.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 66b21d7

Please sign in to comment.