mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-09 17:18:17 +00:00

New actions available in GitHub allow for building and deploying the site completely from the actions workflow with minimal code. The deploy.sh script is no longer necessary with these changes.
42 lines
745 B
YAML
42 lines
745 B
YAML
name: 'CI'
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- 'release/**'
|
|
- 'docs'
|
|
tags-ignore:
|
|
- '**'
|
|
paths-ignore:
|
|
- '.github/**'
|
|
- '!.github/workflows/ci.yml'
|
|
- '.travis.yml'
|
|
- '.gitignore'
|
|
- 'README.md'
|
|
- 'LICENSE'
|
|
pull_request:
|
|
paths:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
ruby: [2.5, 2.6, 2.7, 3]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # for posts's lastmod
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
|
|
- name: Test Site
|
|
run: bash tools/test.sh
|