Skip to content

Commit

Permalink
use docker env to build site
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Feb 7, 2024
1 parent 796ab47 commit a1d5615
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,19 @@ jobs:
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: jekyll-site
path: ${{ github.workspace }}/_site

# Deployment job
deploy:
Expand Down

0 comments on commit a1d5615

Please sign in to comment.