From 48c1ff087434b3777d29adefc40f9b0b2404f283 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 31 Jul 2026 11:46:50 -0400 Subject: [PATCH] Update DO app spec for Jekyll production build and add GitHub Actions workflow --- .do/app.yaml | 3 +-- .do/deploy.template.yaml | 3 +-- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.do/app.yaml b/.do/app.yaml index bcd095f..c3f39a8 100644 --- a/.do/app.yaml +++ b/.do/app.yaml @@ -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 diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml index 9f879ec..1416caf 100644 --- a/.do/deploy.template.yaml +++ b/.do/deploy.template.yaml @@ -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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..200d080 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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