File tree Expand file tree Collapse file tree 2 files changed +43
-18
lines changed Expand file tree Collapse file tree 2 files changed +43
-18
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 1- name : Build
1+ name : Jekyll Build
22
33on :
44 push :
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
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- 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
You can’t perform that action at this time.
0 commit comments