Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/online-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,7 @@ jobs:
tag='${{ github.ref_name }}'
if [[ '${{ github.event_name }}' == workflow_dispatch ]]; then tag='${{ inputs.release_tag }}'; fi
gh release view "$tag" --repo '${{ github.repository }}' >/dev/null 2>&1 || gh release create "$tag" --repo '${{ github.repository }}' --target '${{ github.sha }}' --title "Uni-codex $tag" --notes '在线精简版:安装时仅从 OpenAI、Microsoft Store 与 Codex++ 官方 GitHub Release 获取组件。'
gh release upload "$tag" dist/* --repo '${{ github.repository }}' --clobber
gh release upload "$tag" \
dist/Uni-codex-Windows-x64-Online-Setup.exe \
dist/Uni-codex-macOS-Online.dmg \
--repo '${{ github.repository }}' --clobber
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Release 提供 Windows x64 与 macOS 在线精简安装包。安装包不镜像

- `Uni-codex-Windows-x64-Online-Setup.exe`
- `Uni-codex-macOS-Online.dmg`
- 两个平台各自的 `SHA256SUMS` 文件

构建入口为 `.github/workflows/online-release.yml`。推送形如 `v1.0.0-online` 的标签或手动运行工作流即可创建 Release。安装过程需要网络。

Expand Down
1 change: 1 addition & 0 deletions tests/online_release_contract_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_release_workflow_builds_both_platform_assets(self):
self.assertIn("Uni-codex-Windows-x64-Online-Setup.exe", workflow)
self.assertIn("Uni-codex-macOS-Online.dmg", workflow)
self.assertIn("--repo '${{ github.repository }}'", workflow)
self.assertNotIn('gh release upload "$tag" dist/*', workflow)
self.assertNotIn("CODEX_REDISTRIBUTION_AUTHORIZED", workflow)


Expand Down
Loading