-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #457 from sylhare/ruby
Enhance workflow for ruby compatibility
- Loading branch information
Showing
4 changed files
with
73 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build Docker with theme | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
with: | ||
ruby-version: '3.3' | ||
uses: ruby/setup-ruby@v1 | ||
- name: Build with Docker | ||
continue-on-error: true | ||
run: | | ||
cd assets && docker build . | ||
- name: Pull docker images | ||
continue-on-error: true | ||
run: | | ||
docker pull sylhare/type-on-strap | ||
docker pull sylhare/jekyll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build theme as GitHub page | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: [ '2.7.4', '3.0', '3.3' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, | ||
# change this to (see https://github.com/ruby/setup-ruby#versioning): | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Install github-pages gem 2.7.4 | ||
continue-on-error: true | ||
run: bundle install | ||
working-directory: ./.github/workflows/ruby-2.7.4 | ||
if: matrix.ruby == '2.7.4' | ||
- name: Install github-pages gem | ||
run: | | ||
gem install github-pages | ||
gem update --system | ||
if: matrix.ruby != '2.7.4' | ||
- name: Install | ||
run: bundle install | ||
- name: Build jekyll site | ||
run: bundle exec jekyll build | ||
- name: Start Jekyll site | ||
run: timeout 10s bundle exec jekyll serve | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters