Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Aug 13, 2024
1 parent 5c2ea6d commit 23c3323
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 34 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/gem-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Ruby Gem
name: Type-on-strap CI

on:
pull_request:
Expand All @@ -25,6 +25,11 @@ jobs:
run: bundle install
- name: Build jekyll site
run: bundle exec jekyll build
- name: Build the site in the container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
sylhare/jekyll:latest /bin/bash -c "chmod -R 777 /srv/jekyll && bundle install && jekyll build --future"
- name: Start Jekyll site
run: timeout 10s bundle exec jekyll serve
continue-on-error: true
Expand All @@ -41,4 +46,4 @@ jobs:
- name: GPR
run: |
gem cleanup type-on-strap
gem install type-on-strap --version "2.4.10" --source "https://rubygems.pkg.github.com/sylhare"
gem install type-on-strap --version "2.4.10" --source "https://rubygems.pkg.github.com/sylhare"
8 changes: 7 additions & 1 deletion .github/workflows/gem-github-page.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build theme as GitHub page
name: Type-on-strap CI (GitHub Pages)

on:
pull_request:
Expand Down Expand Up @@ -35,6 +35,12 @@ jobs:
run: bundle install
- name: Build jekyll site
run: bundle exec jekyll build
# GitHub pages use docker jekyll/builder to deploy the site
- name: Build the site in the container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Start Jekyll site
run: timeout 10s bundle exec jekyll serve
continue-on-error: true
31 changes: 0 additions & 31 deletions .github/workflows/jekyll-build.yml

This file was deleted.

0 comments on commit 23c3323

Please sign in to comment.