UpdateTagtime3 #161
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
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [ '2.6', '2.7', '3.0' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the site in the jekyll/builder 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: Set up Ruby 2.6 | |
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Build the gem | |
continue-on-error: true | |
run: | | |
gem build *.gemspec | |
echo `find . -name "*.gem" | tail -1 | awk -F"[/]" '{print $2}'` | |
- name: Install packages | |
continue-on-error: true | |
run: | | |
gem install type-on-strap | |
gem install jekyll-theme-type-on-strap | |
docker pull sylhare/type-on-strap | |
docker pull sylhare/jekyll | |