From 156d12d80ba969cac36ab42efd9420200c6dac41 Mon Sep 17 00:00:00 2001 From: Joris Conijn Date: Wed, 6 Mar 2024 11:46:50 +0100 Subject: [PATCH] fix: always include posts that are in the future Posts are only rendered in Hugo when the date has passed. In this case the post was set to `2024-03-05T19:00:00+01:00` but we merged at `2024-03-05T18:30:00+01:00`. The result was that the page was not shown on the site. --- .github/workflows/hugo.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index cfabd44..6e0752b 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -37,7 +37,7 @@ jobs: - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && sudo dpkg -i ${{ runner.temp }}/hugo.deb + && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Install Dart Sass run: sudo snap install dart-sass - name: Checkout @@ -59,7 +59,8 @@ jobs: hugo \ --gc \ --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" + --baseURL "${{ steps.pages.outputs.base_url }}/" \ + --buildFuture - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: