Skip to content

Commit

Permalink
Merge branch 'pascal-eigval' of https://github.com/cs357/textbook int…
Browse files Browse the repository at this point in the history
…o pascal-eigval
  • Loading branch information
pascaladhikary committed Feb 14, 2024
2 parents 759357f + e8ab820 commit 9a5cf13
Show file tree
Hide file tree
Showing 6 changed files with 317 additions and 66 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Build docker image
run: docker build -t local < Dockerfile.devel
- name: Test build
run: docker run -it local make build
- name: Setup Ruby
uses: ruby/setup-ruby@v1 # v1.161.0
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install
run: make install
- name: Build with Jekyll
run: make build
27 changes: 11 additions & 16 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,25 @@ jobs:

build:
runs-on: ubuntu-latest
needs: imgbuild
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup Ruby
uses: ruby/setup-ruby@v1 # v1.161.0
- uses: docker/setup-buildx-action@v2
- name: Run build
uses: addnab/docker-run-action@v3
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install
run: make install
- name: Build with Jekyll
run: make build
image: ghcr.io/cs357/textbook-devel:latest
options: -v ${{ github.workspace }}:/srv/jekyll
shell: bash
run: cd /srv/jekyll && ls && make install && make build
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: ${{ github.workspace }}/_site

# Deployment job
deploy:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ _site
.jekyll-cache
.jekyll-metadata
vendor
node_modules/
node_modules/
Gemfile.lock
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Site Settings
locale: "en-US"
title: "CS 357 Reference"
title: "CS 357 Textbook"
lang: "en-US"
name: "CS 357 Reference"
description: "CS 357 Reference"
name: "CS 357 Textbook"
description: "CS 357 @ UIUC Textbook"
url: "cs357.github.io"
baseurl: "/textbook"
repository: "cs357/textbook"
Expand Down
2 changes: 1 addition & 1 deletion cs357-rtd-theme
Loading

0 comments on commit 9a5cf13

Please sign in to comment.