Skip to content

Commit 03af5b2

Browse files
committed
Update build task
1 parent 3a7215d commit 03af5b2

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.github/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# GitHub folder
2+
3+
> You don't need that folder for your GitHub page
4+
5+
You can delete this folder or add your own workflows in it.
6+
7+
## Structure
8+
9+
- [hooks](./hooks): custom git hooks for gulp task
10+
- [workflows](./workflows): Workflows of this repository for the GitHub actions
11+
- [config.yml](./config.yml): Config file for "request-info" bot
12+
- [release-drafter.yml](./release-drafter.yml): Config file for "release-drafter" bot
13+
- [stale.yml](./stale.yml): Config file for "stale" bot

.github/workflows/jekyll-build.yml

+19
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,23 @@ jobs:
2222
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
2323
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
2424
25+
- name: Set up Ruby 2.6
26+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
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+
37+
- name: Install packages
38+
continue-on-error: true
39+
run: |
40+
gem install type-on-strap
41+
gem install jekyll-theme-type-on-strap
42+
docker pull sylhare/type-on-strap
43+
docker pull sylhare/jekyll
2544

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Type on Strap 🎨
22

3-
[![Build Status](https://travis-ci.org/sylhare/Type-on-Strap.svg?branch=master)](https://travis-ci.org/sylhare/Type-on-Strap)
3+
[![Build](https://github.com/sylhare/Type-on-Strap/actions/workflows/jekyll-build.yml/badge.svg)](https://github.com/sylhare/Type-on-Strap/actions/workflows/jekyll-build.yml)
44
[![Gem Version](https://badge.fury.io/rb/type-on-strap.svg)](https://badge.fury.io/rb/type-on-strap)
55
[![Docker Pulls](https://img.shields.io/docker/pulls/sylhare/type-on-strap)](https://hub.docker.com/r/sylhare/type-on-strap)
66

0 commit comments

Comments
 (0)