Skip to content

Commit

Permalink
Include drafts in branch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminEHowe committed Jun 28, 2024
1 parent 7adb2b4 commit 8abf4f1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy-cloudflare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Install gems
run: bundle install
- name: Build website
- name: Build website (non-production)
if: steps.extract_branch.outputs.branch != 'main'
run: bundle exec jekyll build --drafts
- name: Build website (production)
if: steps.extract_branch.outputs.branch == 'main'
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
Expand Down

0 comments on commit 8abf4f1

Please sign in to comment.