Skip to content

Commit

Permalink
Merge "create diffable output" steps
Browse files Browse the repository at this point in the history
  • Loading branch information
skrysmanski committed Mar 3, 2024
1 parent 3102fbc commit 2a04418
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,14 @@ jobs:
#
###########################################################################

- name: Create diffable site (with drafts)
if: ${{ env.DEPLOY_STAGE == 'preview' }}
run: hugo --destination '${{ env.DIFF_PUBLISH_DIR }}' ${{ env.HUGO_COMMON_BUILD_PARAMS }} --baseURL 'https://fake.manski.net' --buildDrafts
env:
HUGO_PARAMS_robots: 'diffable-value'
HUGO_PARAMS_gitBranch: 'fake-branch'

- name: Create diffable site (without drafts)
if: ${{ env.DEPLOY_STAGE == 'production' }}
run: hugo --destination '${{ env.DIFF_PUBLISH_DIR }}' ${{ env.HUGO_COMMON_BUILD_PARAMS }} --baseURL 'https://fake.manski.net'
- name: Create diffable output
run: hugo --destination '${{ env.DIFF_PUBLISH_DIR }}' ${{ env.HUGO_COMMON_BUILD_PARAMS }} ${{ env.BUILD_DRAFTS_PARAM }} --baseURL 'https://fake.manski.net'
env:
BUILD_DRAFTS_PARAM: ${{ env.DEPLOY_STAGE == 'production' && '' || '--buildDrafts' }}
HUGO_PARAMS_robots: 'diffable-value'
HUGO_PARAMS_gitBranch: 'fake-branch'

- name: Beautify diffable site
- name: Beautify diffable output
run: node beautify.js '${{ env.DIFF_PUBLISH_DIR }}'
working-directory: themes/devlog-theme/_utils

Expand Down

0 comments on commit 2a04418

Please sign in to comment.