Skip to content

Commit a3e8e8c

Browse files
committed
improve build and deploy process and update publications
1 parent 950754d commit a3e8e8c

4 files changed

Lines changed: 97 additions & 13 deletions

File tree

.github/workflows/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.PHONY: install serve build check
2+
3+
install:
4+
bundle install
5+
6+
serve:
7+
bundle exec jekyll serve --config _config.yml,_config.dev.yml --livereload
8+
9+
build:
10+
bundle exec jekyll build --config _config.yml
11+
12+
check:
13+
bundle exec jekyll doctor

.github/workflows/jekyll.yml

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,69 @@
1-
name: Jekyll site CI
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
28

39
on:
10+
# Runs on pushes targeting the default branch
411
push:
5-
branches: [ master ]
12+
branches: ["master"]
613
pull_request:
7-
branches: [ master ]
14+
branches: ["master"]
15+
16+
# Allows you to run this workflow manually from the Actions tab
17+
workflow_dispatch:
18+
19+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
25+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
26+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
27+
concurrency:
28+
group: "pages"
29+
cancel-in-progress: false
830

931
jobs:
32+
# Build job
1033
build:
11-
1234
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
- name: Setup Ruby
39+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
40+
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
41+
with:
42+
ruby-version: '3.1' # Not needed with a .ruby-version file
43+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
44+
cache-version: 0 # Increment this number if you need to re-download cached gems
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v5
48+
- name: Build with Jekyll
49+
# Outputs to the './_site' directory by default
50+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
51+
env:
52+
JEKYLL_ENV: production
53+
- name: Upload artifact
54+
# Automatically uploads an artifact from the './_site' directory by default
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./_site
1358

59+
# Deployment job
60+
deploy:
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
needs: build
1466
steps:
15-
- uses: actions/checkout@v2
16-
- name: Build the site in the jekyll/builder container
17-
run: |
18-
docker run \
19-
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
20-
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1-
# CEMeNT Site
1+
# CEMeNT Website
22

3+
Jekyll + GitHub Pages.
34

4-
# For macOS arm
5-
`bundle add webrick`
5+
## Local development
6+
`bundle install`
7+
`make serve`
8+
Open: `http://localhost:4000`
9+
10+
## Edit these folders
11+
`_pages/` pages
12+
`_members/` team members
13+
`_publications/` publications
14+
`_posts/` news/posts
15+
`assets/` images and styles
16+
17+
## Do not edit
18+
`_site/` build output
19+
`docs/` legacy output (no manual edits)
20+
21+
## Deploy flow
22+
1. Create a branch.
23+
2. Make changes.
24+
3. Open a PR.
25+
4. Merge into `master` (auto deploy via GitHub Actions).

_pages/publications.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Springer, New York (2021) ISBN: [978-3030703875](https://link.springer.com/book/
2424

2525
# Journal Articles
2626

27+
* [J. Farmer](../members/joey_farmer/), A. Murray, [J. Krotz](../members/johannes_krotz/), and [R. G. McClarren](../members/ryan_mcclarren/). Generative Monte Carlo Sampling for Constant-Cost Particle Transport. (Submitted). 2025. [arXiv:2512.13965](https://arxiv.org/abs/2512.13965)
28+
2729
* [B. Whewell](../previous/ben_whewell/), [R. G. McClarren](../members/ryan_mcclarren/). Single Grid Error Estimation for Neutron Transport Solvers. *Journal of Verification, Validation, and Uncertainty Quantification* **10**(2): 021001. (2025). DOI [10.1115/1.4069426](https://doi.org/10.1115/1.4069426)
2830

2931
* [B. Whewell](../previous/ben_whewell/), [R. G. McClarren](../members/ryan_mcclarren/). Collision-Based Hybrid Method for Two-Dimensional Neutron Transport Problems. *Nuclear Science and Engineering* **200**(3), 502–524. (2025). DOI [10.1080/00295639.2025.2489778](https://doi.org/10.1080/00295639.2025.2489778)

0 commit comments

Comments
 (0)