Skip to content

Add GitHub Actions workflow for CI and GitHub Pages deployment - #1354

Open
pcottle wants to merge 1 commit into
mainfrom
codex/set-up-github-actions-for-auto-deploy-io7mzz
Open

Add GitHub Actions workflow for CI and GitHub Pages deployment#1354
pcottle wants to merge 1 commit into
mainfrom
codex/set-up-github-actions-for-auto-deploy-io7mzz

Conversation

@pcottle

@pcottle pcottle commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide continuous integration on PRs and pushes to main and enable automated deployment to a github-pages branch for GitHub Pages hosting.
  • Ensure consistent Node environment and dependency handling using Node.js 18 and Yarn Classic across CI and deploy runs.
  • Prevent concurrent workflows for the same ref and allow manual runs via workflow_dispatch.

Description

  • Added .github/workflows/pages-deploy.yml to register a workflow that runs on pull_request and push to main and supports workflow_dispatch.
  • Added a verify job that checks out the code, sets up Node.js 18, installs Yarn Classic, runs yarn install --frozen-lockfile, and executes yarn gulp build (tests + lint + build).
  • Added a deploy job (dependent on verify) that runs only on pushes to main, builds production assets, and deploys the repository tree to the github-pages branch using peaceiris/actions-gh-pages@v4 with publish_dir set to . and force_orphan: true.
  • Configured workflow permissions (contents: write) and concurrency grouping with pages-${{ github.ref }} to cancel in-progress runs for the same ref.

Testing

  • CI is configured to run yarn gulp build (which includes tests, lint, and build) in the verify job for PRs and pushes to main to validate changes.
  • No workflow runs were executed as part of this change in the repository at the time of the PR creation.

Codex Task

@netlify

netlify Bot commented Apr 9, 2026

Copy link
Copy Markdown

Deploy Preview for xenodochial-hugle-b9ec84 ready!

Name Link
🔨 Latest commit bd19e50
🔍 Latest deploy log https://app.netlify.com/projects/xenodochial-hugle-b9ec84/deploys/69d7b3fcf4155b00086938bd
😎 Deploy Preview https://deploy-preview-1354--xenodochial-hugle-b9ec84.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd19e5021e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: github-pages
publish_dir: .

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Publish build output instead of repository root

On GitHub Actions runners CI=true, and gulp build writes the entry page to build/index.html (see gulpfile.js around lines 114-116) rather than creating a root index.html. Deploying publish_dir: . therefore pushes a tree whose root has no generated index page, so GitHub Pages can serve a 404 or stale content from previous commits. Point publish_dir at build (or change the CI build output path) so the generated site root is what gets published.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants