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
|
||||
static_sites:
|
||||
- name: simcoetradesjournal
|
||||
build_command: bundle exec jekyll build
|
||||
environment_slug: jekyll
|
||||
build_command: JEKYLL_ENV=production bundle exec jekyll build
|
||||
output_dir: _site
|
||||
github:
|
||||
branch: main
|
||||
|
||||
@@ -2,8 +2,7 @@ spec:
|
||||
name: simcoetradesjournal
|
||||
static_sites:
|
||||
- name: simcoetradesjournal
|
||||
build_command: bundle exec jekyll build
|
||||
environment_slug: jekyll
|
||||
build_command: JEKYLL_ENV=production bundle exec jekyll build
|
||||
output_dir: _site
|
||||
git:
|
||||
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