Skip to content

Commit

Permalink
adding workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rupesh2 committed Mar 4, 2025
1 parent 23674eb commit 1ef487f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 21 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: deploy-book

on:
# Trigger the workflow on push to main branch
push:
branches:
- main

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

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy-book:
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4

# Install dependencies
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip # Implicitly depends upon requirements.txt

- name: Install dependencies
run: pip install -r requirements.txt

# Build the book
- name: Build the book
run: jupyter-book build .

# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "_build/html"

# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
26 changes: 5 additions & 21 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
contextily~=1.3.0
geopandas~=0.13.2
folium~=0.14.0
h5py~=3.8.0
harmony-py~=0.4.9
IPython~=8.12.2
matplotlib~=3.7.1
matplotlib_scalebar~=0.8.1
netCDF4~=1.6.4
numpy~=1.24.3
owslib~=0.29.2
pandas~=2.0.2
pydap~=3.4.1
rasterio~=1.3.7
rasterstats~=0.19.0
requests~=2.31.0
s3fs~=2023.6.0
seaborn~=0.12.2
scipy~=1.10.1
shapely~=2.0.1
tabulate~=0.9.0
jupyter-book
matplotlib
numpy
ghp-import
sphinxcontrib-mermaid

0 comments on commit 1ef487f

Please sign in to comment.