1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

chore(ci, cd): build and deploy via _gh-actions_ directly

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.
This commit is contained in:
Galen Rice
2022-08-13 17:47:30 -04:00
committed by Cotes Chung
parent b78a2d85bd
commit 43323abdfe
4 changed files with 124 additions and 170 deletions

View File

@@ -20,18 +20,22 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.5, 2.6, 2.7, 3]
steps:
- name: Checkout
uses: actions/checkout@v2
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/deploy.sh --dry-run
run: bash tools/test.sh