# Site builds locally perfectly fine but no pages are generated in github actions

**URL:** <https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267>\
**Category:** support\
**Created:** [August 29, 2022, 11:57pm UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267 "2022-08-29T23:57:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThatNerdUKnow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/thatnerduknow/32/17641_2.png) [@ThatNerdUKnow](https://discourse.gohugo.io/u/ThatNerdUKnow)\
**Post date:** [August 29, 2022, 11:57pm UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/1 "2022-08-29T23:57:05Z")

</div>

I’m trying to set up my site using hugo extended. Here’s an example of a header for one of my pages

```nohighlight
+++
title = "My First Post"
date = "2022-08-27T22:23:33-05:00"
author = ""
authorTwitter = "" #do not include @
tags = ["programming"]
keywords = ["twitter"]
description = ""
showFullContent = false
readingTime = true
hideComments = false
draft = false
+++

```

and my config.yaml

```nohighlight
theme: terminal
languageCode: en-us
title: Hugo
baseURL: "https://thatnerduknow.github.io/"

params:
  contentTypeName: "posts"
  themeColor: "green"
  showMenuItems: 2
  centerTheme: true
  fullWidthTHeme: false
  autoCover: true
  showLastUpdated: true
  enableGitInfo: true
  readingTime: true
  Toc: true
  TocTitle: "Table of Contents"

menu:
  main:
    - identifier: about
      name: About
      url: /about/
    - identifier: tags
      name: Tags
      url: /tags/

```

and here’s my github actions file:

```nohighlight
name: GitHub Pages

on:
  push:
    branches:
      - main # Set a branch to deploy
  pull_request:

jobs:
  deploy:
    runs-on: ubuntu-20.04
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: true # Fetch Hugo themes (true OR recursive)
          fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: '0.101.0'
          # extended: true

      - name: Build
        run: hugo --minify

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        if: ${{ github.ref == 'refs/heads/main' }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./public

```

I see no errors in the logs for github actions yet no pages are generated. I’m certain none of my pages are in draft mode and I’m certain that my baseurl is set correctly. I’m at a loss as to how to proceed and any help would be appreciated

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [August 30, 2022, 12:52am UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/2 "2022-08-30T00:52:29Z")

</div>

If I’m reading the log properly, you last deployed on Aug 27 at 6:35 am Central Daylight Time (-05:00). But the one and only post (content/posts/financial-disclosures.md) has `date = 2022-08-27T22:23:33-05:00`.

So at time of deployment, that post had a future date, and would not be published without running `hugo -F`.

---

<div class="post-metadata">

**Author:** ![ThatNerdUKnow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/thatnerduknow/32/17641_2.png) [@ThatNerdUKnow](https://discourse.gohugo.io/u/ThatNerdUKnow)\
**Post date:** [August 30, 2022, 12:40pm UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/3 "2022-08-30T12:40:11Z")

</div>

Since that date has now passed if I were to deploy again the post would show up?

---

<div class="post-metadata">

**Author:** ![ThatNerdUKnow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/thatnerduknow/32/17641_2.png) [@ThatNerdUKnow](https://discourse.gohugo.io/u/ThatNerdUKnow)\
**Post date:** [August 30, 2022, 12:47pm UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/4 "2022-08-30T12:47:26Z")

</div>

I can see in my gh-pages branch that my post is now generated but for some reason github pages isn’t picking up my changes and deploying the branch

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [August 30, 2022, 9:06pm UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/5 "2022-08-30T21:06:59Z")

</div>

This is what I see when I visit [https://thatnerduknow.github.io/](https://thatnerduknow.github.io/)…

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/1/9/1962ae4cf577c234f9b7a0a7d7f8ae4c9c8d13ba.png)

---

<div class="post-metadata">

**Author:** ![ThatNerdUKnow](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/thatnerduknow/32/17641_2.png) [@ThatNerdUKnow](https://discourse.gohugo.io/u/ThatNerdUKnow)\
**Post date:** [August 31, 2022, 4:29am UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/6 "2022-08-31T04:29:29Z")

</div>

Sorry for not responding, but it appears that after the CI finishes it takes a few minutes for the deployment to change. Thank you very much for your help

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [September 2, 2022, 4:29am UTC](https://discourse.gohugo.io/t/site-builds-locally-perfectly-fine-but-no-pages-are-generated-in-github-actions/40267/7 "2022-09-02T04:29:40Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
