Update DO app spec for Jekyll production build and add GitHub Actions workflow
This commit is contained in:
+1
-2
@@ -1,8 +1,7 @@
|
|||||||
name: simcoetradesjournal
|
name: simcoetradesjournal
|
||||||
static_sites:
|
static_sites:
|
||||||
- name: simcoetradesjournal
|
- name: simcoetradesjournal
|
||||||
build_command: bundle exec jekyll build
|
build_command: JEKYLL_ENV=production bundle exec jekyll build
|
||||||
environment_slug: jekyll
|
|
||||||
output_dir: _site
|
output_dir: _site
|
||||||
github:
|
github:
|
||||||
branch: main
|
branch: main
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ spec:
|
|||||||
name: simcoetradesjournal
|
name: simcoetradesjournal
|
||||||
static_sites:
|
static_sites:
|
||||||
- name: simcoetradesjournal
|
- name: simcoetradesjournal
|
||||||
build_command: bundle exec jekyll build
|
build_command: JEKYLL_ENV=production bundle exec jekyll build
|
||||||
environment_slug: jekyll
|
|
||||||
output_dir: _site
|
output_dir: _site
|
||||||
git:
|
git:
|
||||||
branch: main
|
branch: main
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
name: Build Jekyll Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.3'
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Build site with Jekyll
|
||||||
|
run: |
|
||||||
|
JEKYLL_ENV=production bundle exec jekyll build
|
||||||
|
env:
|
||||||
|
JEKYLL_ENV: production
|
||||||
Reference in New Issue
Block a user