Skip to content

feat: add automated Intel build and release workflow#14

Open
soham2008xyz wants to merge 12 commits into
masterfrom
claude/automated-gh-actions-daily-release
Open

feat: add automated Intel build and release workflow#14
soham2008xyz wants to merge 12 commits into
masterfrom
claude/automated-gh-actions-daily-release

Conversation

@soham2008xyz

Copy link
Copy Markdown
Owner

Introduces build.sh to streamline prerequisite checks, CLI installation, DMG download, application rebuilding, and permission fixes.Add GitHub Actions workflow to automatically build and release Intel builds:

  • Daily cron job checks for new Codex.dmg versions
  • Downloads and verifies latest DMG from OpenAI
  • Builds Intel (x64) version using make build
  • Creates tagged releases with version extraction
  • Uploads Codex.app.zip asset to GitHub

Includes helper scripts:

  • scripts/extract-app-version.sh: Extracts version from Codex.app
  • scripts/get-last-dmg-hash.sh: Gets DMG hash from last release

Updates README.md with automated release documentation including:

  • How the automated system works
  • Instructions for end users to download releases
  • Benefits and troubleshooting information
  • Retains manual build instructions as fallback

Closes #2

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

soham2008xyz and others added 6 commits March 22, 2026 22:38
Add GitHub Actions workflow to automatically build and release Intel builds:
- Daily cron job checks for new Codex.dmg versions
- Downloads and verifies latest DMG from OpenAI
- Builds Intel (x64) version using make build
- Creates tagged releases with version extraction
- Uploads Codex.app.zip asset to GitHub

Includes helper scripts:
- scripts/extract-app-version.sh: Extracts version from Codex.app
- scripts/get-last-dmg-hash.sh: Gets DMG hash from last release

Updates README.md with automated release documentation including:
- How the automated system works
- Instructions for end users to download releases
- Benefits and troubleshooting information
- Retains manual build instructions as fallback

Closes #2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add git-commit skill to standardize commit creation across all AI agent
directories. The skill provides automated conventional commit message
generation with diff analysis and intelligent staging capabilities.

Changes include:
- Add git-commit skill implementation in .agents/skills/git-commit/
- Create symlinks for compatibility across .agent, .claude, .junie, .vibe
- Add skills-lock.json for skill metadata tracking

The skill analyzes diffs to auto-detect commit type, scope, and generates
appropriate conventional commit messages following best practices.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add github-issues skill to multiple agent directories (.agent, .agents,
.claude, .junie, .vibe) and update skills-lock.json accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds gh-cli skill documentation and symlinks in multiple agent
configurations (.agent, .agents, .claude, .junie, .vibe).

Updates skills-lock.json to track the new skill with computed hash.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ectories

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Install the GitHub PR checks fix skill in multiple agent directories:
- .agent/skills/gh-fix-ci (symlink)
- .agents/skills/gh-fix-ci/ (full skill with LICENSE, SKILL.md, agents config, assets, scripts)
- .claude/skills/gh-fix-ci (symlink)
- .junie/skills/gh-fix-ci (symlink)
- .vibe/skills/gh-fix-ci (symlink)
- Update skills-lock.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 27, 2026 14:27
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request adds several agent skills for GitHub CLI, CI debugging, and issue management, alongside an automated build system for Intel releases. Key feedback involves fixing a future date typo and a stray command fragment in the documentation, removing a duplicate section in the README, and enhancing the shell script's temporary directory handling for better security.


Comprehensive reference for GitHub CLI (gh) - work seamlessly with GitHub from the command line.

**Version:** 2.85.0 (current as of January 2026)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The version information mentions "January 2026", which is a future date and likely a placeholder or typo. To avoid confusion for users of this skill documentation, please correct this to a relevant date or remove it.

Comment thread .agents/skills/gh-cli/SKILL.md Outdated
Comment thread README.md
Comment on lines +101 to +109
## Updates

**Note:** This is a manual port. Auto-updates will **not** work.

To update:
1. Download the new `Codex.dmg` from OpenAI.
2. Replace the old `Codex.dmg` in this folder.
3. If the Codex CLI also updated, run `npm update -g @openai/codex`.
4. Run `node rebuild_codex.js --clean` to ensure a fresh build with the new files.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This "Updates" section is a duplicate of the one already present in the file (lines 51-59). Please remove this redundant section to avoid confusion for readers.

Comment thread scripts/extract-app-version.sh Outdated

Copilot AI 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.

Pull request overview

Adds an automated GitHub Actions pipeline to build and publish Intel (x64) Codex Desktop releases, plus helper scripts and documentation for consuming those automated releases.

Changes:

  • Introduces a scheduled/manual GitHub Actions workflow to detect new Codex DMG versions, build Intel artifacts, and publish GitHub releases.
  • Adds helper scripts for extracting app version info and retrieving the last release’s DMG hash.
  • Adds README documentation for the automated release flow, and introduces a set of “agent/skills” metadata files.

Reviewed changes

Copilot reviewed 41 out of 43 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
skills-lock.json Adds a lockfile for referenced “skills” sources/hashes.
scripts/get-last-dmg-hash.sh Helper to read the previous release notes and extract the last DMG SHA256.
scripts/extract-app-version.sh Helper to mount a DMG and emit app version metadata as JSON.
README.md Documents automated releases and end-user installation steps.
.github/workflows/automated-release.yml New scheduled workflow to download DMG, build Intel app, and create/upload a release asset.
.vibe/skills/github-issues Adds skill pointer file.
.vibe/skills/git-flow-branch-creator Adds skill pointer file.
.vibe/skills/git-commit Adds skill pointer file.
.vibe/skills/gh-fix-ci Adds skill pointer file.
.vibe/skills/gh-cli Adds skill pointer file.
.junie/skills/github-issues Adds skill pointer file.
.junie/skills/git-flow-branch-creator Adds skill pointer file.
.junie/skills/git-commit Adds skill pointer file.
.junie/skills/gh-fix-ci Adds skill pointer file.
.junie/skills/gh-cli Adds skill pointer file.
.claude/skills/github-issues Adds skill pointer file.
.claude/skills/git-flow-branch-creator Adds skill pointer file.
.claude/skills/git-commit Adds skill pointer file.
.claude/skills/gh-fix-ci Adds skill pointer file.
.claude/skills/gh-cli Adds skill pointer file.
.agents/skills/github-issues/SKILL.md Adds documentation/automation “skill” spec for GitHub issues.
.agents/skills/github-issues/references/templates.md Adds issue template reference material.
.agents/skills/github-issues/references/sub-issues.md Adds sub-issues reference material.
.agents/skills/github-issues/references/search.md Adds issue search reference material.
.agents/skills/github-issues/references/projects.md Adds projects reference material.
.agents/skills/github-issues/references/issue-types.md Adds issue types reference material.
.agents/skills/github-issues/references/issue-fields.md Adds issue fields reference material.
.agents/skills/github-issues/references/images.md Adds images-in-issues reference material.
.agents/skills/github-issues/references/dependencies.md Adds issue dependencies reference material.
.agents/skills/git-flow-branch-creator/SKILL.md Adds “skill” spec for Git Flow branch creation.
.agents/skills/git-commit/SKILL.md Adds “skill” spec for conventional commits.
.agents/skills/gh-fix-ci/scripts/inspect_pr_checks.py Adds a script to inspect failing PR checks/logs via gh.
.agents/skills/gh-fix-ci/assets/github-small.svg Adds an icon asset for the gh-fix-ci skill.
.agents/skills/gh-fix-ci/agents/openai.yaml Adds agent UI metadata for gh-fix-ci.
.agents/skills/gh-fix-ci/SKILL.md Adds “skill” spec for diagnosing CI failures.
.agents/skills/gh-fix-ci/LICENSE.txt Adds license text for gh-fix-ci skill content.
.agents/skills/gh-cli/SKILL.md Adds extensive gh CLI documentation content.
.agent/skills/github-issues Adds skill pointer file.
.agent/skills/git-flow-branch-creator Adds skill pointer file.
.agent/skills/git-commit Adds skill pointer file.
.agent/skills/gh-fix-ci Adds skill pointer file.
.agent/skills/gh-cli Adds skill pointer file.
Comments suppressed due to low confidence (6)

scripts/get-last-dmg-hash.sh:1

  • The script accepts [repo-owner] [repo-name] and computes REPO=..., but the gh release list/view calls don’t use it, so passing arguments has no effect. Use gh ... --repo \"$REPO\" (or set GH_REPO) so the CLI interface matches actual behavior, or remove the arguments to avoid a misleading API.
    scripts/get-last-dmg-hash.sh:1
  • The script accepts [repo-owner] [repo-name] and computes REPO=..., but the gh release list/view calls don’t use it, so passing arguments has no effect. Use gh ... --repo \"$REPO\" (or set GH_REPO) so the CLI interface matches actual behavior, or remove the arguments to avoid a misleading API.
    scripts/get-last-dmg-hash.sh:1
  • The script accepts [repo-owner] [repo-name] and computes REPO=..., but the gh release list/view calls don’t use it, so passing arguments has no effect. Use gh ... --repo \"$REPO\" (or set GH_REPO) so the CLI interface matches actual behavior, or remove the arguments to avoid a misleading API.
    scripts/extract-app-version.sh:1
  • With set -e, if hdiutil detach fails (common if the volume is briefly busy), the script exits early and can leave the DMG mounted. Use a trap for cleanup and make detach resilient (e.g., retry and/or hdiutil detach -force) so temporary mounts don’t leak in CI or local runs.
    README.md:1
  • This “To update” block appears to duplicate the earlier manual update instructions near the top of the README. To avoid docs drifting out of sync, keep a single source of truth (remove one copy and link to the remaining section, or factor the steps into a shared section referenced by both places).
    skills-lock.json:1
  • The PR description focuses on automated Intel build/release, but this PR also adds a large set of agent/skills files and a skills lockfile. If these are required, the PR description should mention them and why they’re needed; otherwise, consider splitting them into a separate PR to keep the release automation change focused.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/automated-release.yml Outdated
Comment thread .github/workflows/automated-release.yml Outdated
Comment thread .github/workflows/automated-release.yml Outdated
Comment on lines +146 to +168
# Create release notes
RELEASE_BODY="""
## Codex Intel Build v${VERSION}

This is an Intel (x64) build of the official Codex Desktop App.

### Build Information
- **Source**: OpenAI Codex DMG
- **DMG SHA256**: ${DMG_HASH}
- **Architecture**: Intel x64
- **Build Date**: $(date -u +"%Y-%m-%d %H:%M UTC")

### Notes
- Auto-generated from automated workflow
- Built on macOS Intel runner
- Includes `--no-sandbox` wrapper for tool compatibility

### Installation

1. Download the **Codex.app.zip** asset below
2. Extract the zip file
3. Move `Codex.app` to `/Applications/`
4. If you see "App is damaged":

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

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

Bash doesn’t support Python-style triple-quoted strings, so this will fail and the release won’t be created. Use a heredoc to build RELEASE_BODY (or write notes to a file and pass --notes-file) so newlines/code fences are preserved safely.

Copilot uses AI. Check for mistakes.
Comment on lines +178 to +196
# Create release
gh release create "$TAG_VERSION" \
--title "Intel Build - v${VERSION}" \
--notes "$RELEASE_BODY" \
--verify-tag=false

- name: Upload Release Asset
if: steps.check-version.outputs.is_new == 'true'
run: |
TAG_VERSION="v${{ steps.extract-version.outputs.version }}-intel"

# Zip the app
echo "Creating zip archive..."
zip -r Codex.app.zip Codex.app -x "*.DS_Store" -x "*/.git*"

# Upload to release
echo "Uploading release asset..."
gh release upload "$TAG_VERSION" Codex.app.zip#Codex.app.zip \
--clobber

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

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

These steps invoke gh release create/upload but don’t set GH_TOKEN/GITHUB_TOKEN in env: like the earlier step does. Unless gh is already authenticated on the runner, these commands will fail at runtime. Set env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} (or GITHUB_TOKEN) on each step that runs gh.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fixed in commit 4160c02. Both issues are now resolved:

  1. Release notes: Replaced the invalid triple-quoted Bash string with a group command that writes to /tmp/release-notes.md, then passes --notes-file /tmp/release-notes.md to gh release create.
  2. Authentication: Added env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} to both the "Create Release" and "Upload Release Asset" steps.

Comment thread .github/workflows/automated-release.yml Outdated
soham2008xyz and others added 5 commits March 29, 2026 12:58
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants