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

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

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

theme: terminal
languageCode: en-us
title: Hugo
baseURL: ""

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

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

and here’s my github actions file:

name: GitHub Pages

      - main  # Set a branch to deploy

    runs-on: ubuntu-20.04
      group: ${{ github.workflow }}-${{ github.ref }}
      - uses: actions/checkout@v3
          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
          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' }}
          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

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/ 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.

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

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

This is what I see when I visit

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

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