Skip to content

Commit 8736e64

Browse files
committed
Update workflow files
1 parent d49136d commit 8736e64

File tree

2 files changed

+43
-18
lines changed

2 files changed

+43
-18
lines changed

.github/workflows/gem-build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Ruby Gem
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
ruby-version: [ '2.6', '2.7', '3.0' ]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Ruby
20+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
21+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26+
- name: Install
27+
run: bundle install
28+
- name: Build jekyll site
29+
run: bundle exec jekyll build
30+
- name: Build the gem
31+
continue-on-error: true
32+
run: |
33+
gem build *.gemspec
34+
echo `find . -name "*.gem" | tail -1 | awk -F"[/]" '{print $2}'`
35+
- name: Gems
36+
run: |
37+
gem install type-on-strap
38+
gem install jekyll-theme-type-on-strap
39+
- name: GPR
40+
continue-on-error: true
41+
run: |
42+
gem install type-on-strap --version "2.4.3" --source "https://rubygems.pkg.github.com/sylhare"

.github/workflows/jekyll-build.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Jekyll Build
22

33
on:
44
push:
@@ -10,9 +10,6 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
ruby-version: [ '2.6', '2.7', '3.0' ]
1613

1714
steps:
1815
- uses: actions/checkout@v2
@@ -22,23 +19,9 @@ jobs:
2219
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
2320
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
2421
25-
- name: Set up Ruby ${{ matrix.ruby-version }}
26-
uses: ruby/[email protected]
27-
with:
28-
ruby-version: ${{ matrix.ruby-version }}
29-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30-
31-
- name: Build the gem
32-
continue-on-error: true
33-
run: |
34-
gem build *.gemspec
35-
echo `find . -name "*.gem" | tail -1 | awk -F"[/]" '{print $2}'`
36-
3722
- name: Install packages
3823
continue-on-error: true
3924
run: |
40-
gem install type-on-strap
41-
gem install jekyll-theme-type-on-strap
4225
docker pull sylhare/type-on-strap
4326
docker pull sylhare/jekyll
4427

0 commit comments

Comments
 (0)