Skip to content

Commit e92a4d6

Browse files
committed
Add validation and release metadata
1 parent 0874568 commit e92a4d6

3 files changed

Lines changed: 91 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: "Existing tag to publish, for example v0.1.0"
11+
required: true
12+
type: string
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
publish:
19+
name: Publish GitHub release
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Resolve release notes
29+
id: release
30+
run: |
31+
tag_name="${GITHUB_REF_NAME}"
32+
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
33+
tag_name="${{ inputs.tag }}"
34+
fi
35+
36+
notes_file="docs/release-notes-${tag_name}.md"
37+
if [[ ! -f "${notes_file}" ]]; then
38+
echo "missing release notes: ${notes_file}" >&2
39+
exit 1
40+
fi
41+
42+
echo "tag_name=${tag_name}" >> "${GITHUB_OUTPUT}"
43+
echo "notes_file=${notes_file}" >> "${GITHUB_OUTPUT}"
44+
45+
- name: Create or update release
46+
env:
47+
GH_TOKEN: ${{ github.token }}
48+
TAG_NAME: ${{ steps.release.outputs.tag_name }}
49+
NOTES_FILE: ${{ steps.release.outputs.notes_file }}
50+
run: |
51+
if gh release view "${TAG_NAME}" >/dev/null 2>&1; then
52+
gh release edit "${TAG_NAME}" \
53+
--title "${TAG_NAME}" \
54+
--notes-file "${NOTES_FILE}"
55+
else
56+
gh release create "${TAG_NAME}" \
57+
--title "${TAG_NAME}" \
58+
--notes-file "${NOTES_FILE}" \
59+
--verify-tag
60+
fi

README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,30 @@ The patch follows the Nopiskl issue #14860 approach:
1414
- provide a CentOS 7 compatibility shim for the final link step when older
1515
system headers/libc do not expose symbols needed by transitive native code
1616

17+
## Repository Metadata
18+
19+
Suggested GitHub description:
20+
21+
```text
22+
Source patch package for Codex CLI 0.131.0 issue #14860 remote compaction timeout on Linux and CentOS 7.
23+
```
24+
25+
Suggested GitHub topics:
26+
27+
```text
28+
codex-cli openai-codex codex issue-14860 reqwest tcp-user-timeout
29+
remote-compaction compaction-timeout centos7 linux rust patch-package
30+
```
31+
1732
## Search Keywords
1833

19-
Codex CLI, OpenAI Codex, codex-cli 0.131.0, rust-v0.131.0, issue 14860,
20-
Nopiskl issue 14860, remote compaction, compaction timeout, long-running
21-
request timeout, reqwest tcp_user_timeout, TCP_USER_TIMEOUT, Rust source build,
22-
CentOS 7 build, Linux CLI patch, OpenSSL build dependency, Perl IPC::Cmd,
23-
`memfd_create`, `le16toh`, `be16toh`, source patch package.
34+
Codex CLI, OpenAI Codex, OpenAI Codex CLI, codex-cli 0.131.0,
35+
rust-v0.131.0, Codex issue 14860, issue #14860, Nopiskl issue 14860,
36+
remote compaction timeout, compaction timeout fix, long-running request
37+
timeout, Codex login timeout, reqwest `tcp_user_timeout`, TCP_USER_TIMEOUT,
38+
Linux CLI patch, CentOS 7 Codex build, Rust source build, OpenSSL build
39+
dependency, Perl IPC::Cmd, `memfd_create`, `le16toh`, `be16toh`, source patch
40+
package.
2441

2542
## Contents
2643

@@ -39,6 +56,9 @@ CentOS 7 build, Linux CLI patch, OpenSSL build dependency, Perl IPC::Cmd,
3956
- Notes from the CentOS 7 build and install flow.
4057
- `.github/workflows/validate.yml`
4158
- CI workflow that checks shell syntax, patch parsing, and shim compilation.
59+
- `.github/workflows/release.yml`
60+
- Release workflow that publishes or updates GitHub Releases from versioned
61+
release notes when a `v*` tag is pushed.
4262

4363
## Prerequisites
4464

docs/release-notes-v0.1.0.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ package.
1515
`be16toh`.
1616
- GitHub Actions validation workflow for scripts, patch parsing, and shim
1717
compilation.
18+
- GitHub Actions release workflow for publishing this note as a GitHub Release
19+
from the `v0.1.0` tag.
1820

1921
## Search keywords
2022

21-
Codex CLI, OpenAI Codex, codex-cli 0.131.0, issue 14860, Nopiskl, remote
22-
compaction, compaction timeout, tcp_user_timeout, reqwest, Rust, CentOS 7,
23-
Linux, source build, patch package.
24-
23+
Codex CLI, OpenAI Codex, OpenAI Codex CLI, codex-cli 0.131.0, issue 14860,
24+
issue #14860, Nopiskl, remote compaction timeout, compaction timeout fix,
25+
long-running request timeout, tcp_user_timeout, reqwest, TCP_USER_TIMEOUT,
26+
Rust, CentOS 7, Linux, source build, patch package.

0 commit comments

Comments
 (0)