Skip to content

Commit d03694c

Browse files
committed
chore(release): enhance release workflow and update asset documentation for v0.0.4
- Add validation step for release app secrets in the GitHub Actions workflow. - Update CSS variables for improved styling consistency. - Revise asset documentation to clarify published files and expected patterns for future releases.
1 parent 50a8de7 commit d03694c

3 files changed

Lines changed: 40 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,17 @@ jobs:
318318
needs: [preflight, release]
319319
runs-on: ubuntu-24.04
320320
steps:
321+
- name: Validate release app secrets
322+
shell: bash
323+
env:
324+
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }}
325+
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
326+
run: |
327+
set -euo pipefail
328+
[[ -n "$RELEASE_APP_ID" ]] || { echo "Missing secret RELEASE_APP_ID"; exit 1; }
329+
[[ "$RELEASE_APP_ID" =~ ^[0-9]+$ ]] || { echo "RELEASE_APP_ID must be a numeric GitHub App ID"; exit 1; }
330+
[[ -n "$RELEASE_APP_PRIVATE_KEY" ]] || { echo "Missing secret RELEASE_APP_PRIVATE_KEY"; exit 1; }
331+
321332
- id: app_token
322333
name: Mint release app token
323334
uses: actions/create-github-app-token@v2

apps/desktop/turbo.jsonc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
"outputs": ["dist-electron/**"],
88
},
99
"dev": {
10-
"dependsOn": ["okcode#build"],
10+
"dependsOn": ["okcodes#build"],
1111
"persistent": true,
1212
},
1313
"start": {
14-
"dependsOn": ["build", "@okcode/web#build", "okcode#build"],
14+
"dependsOn": ["build", "@okcode/web#build", "okcodes#build"],
1515
"cache": false,
1616
"persistent": true,
1717
},
1818
"smoke-test": {
19-
"dependsOn": ["build", "@okcode/web#build", "okcode#build"],
19+
"dependsOn": ["build", "@okcode/web#build", "okcodes#build"],
2020
"cache": false,
2121
"outputs": [],
2222
},

docs/releases/v0.0.4/assets.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,40 @@ The GitHub Release also includes **documentation attachments** (same content as
1010
| `okcode-RELEASE-NOTES.md` | [v0.0.4.md](../v0.0.4.md) |
1111
| `okcode-ASSETS-MANIFEST.md` | This file |
1212

13-
After the workflow completes, expect **installer and updater** artifacts similar to the following (exact names may include the product name `OK Code` and version `0.0.4`).
13+
## Published on GitHub (`v0.0.4`)
1414

15-
## Desktop installers and payloads
15+
These files are attached to the [v0.0.4 release](https://github.com/OpenKnots/okcode/releases/tag/v0.0.4) (macOS Apple Silicon only for this tag):
1616

17-
| Platform | Kind | Typical pattern |
18-
| ------------------- | -------------- | --------------- |
19-
| macOS Apple Silicon | DMG | `*.dmg` (arm64) |
20-
| macOS Intel | DMG | `*.dmg` (x64) |
21-
| macOS | ZIP (updater) | `*.zip` |
22-
| Linux x64 | AppImage | `*.AppImage` |
23-
| Windows x64 | NSIS installer | `*.exe` |
17+
| File | Role |
18+
| ---------------------------------- | ------------------------------ |
19+
| `OK-Code-0.0.4-arm64.dmg` | macOS Apple Silicon installer |
20+
| `OK-Code-0.0.4-arm64.dmg.blockmap` | DMG differential updates |
21+
| `OK-Code-0.0.4-arm64.zip` | macOS updater payload (zip) |
22+
| `OK-Code-0.0.4-arm64.zip.blockmap` | Zip differential updates |
23+
| `latest-mac.yml` | Electron macOS update manifest |
24+
| `okcode-CHANGELOG.md` | Root changelog (copy) |
25+
| `okcode-RELEASE-NOTES.md` | [v0.0.4.md](../v0.0.4.md) copy |
26+
| `okcode-ASSETS-MANIFEST.md` | This manifest (copy) |
27+
28+
Other platforms (Intel macOS, Linux, Windows) may ship on future tags when CI attaches those artifacts.
29+
30+
## Typical patterns (future / multi-platform builds)
31+
32+
| Platform | Kind | Typical pattern |
33+
| ------------------- | -------------- | ------------------------------------ |
34+
| macOS Apple Silicon | DMG | `OK-Code-*-arm64.dmg` |
35+
| macOS Intel | DMG | `OK-Code-*-x64.dmg` or `*.dmg` (x64) |
36+
| macOS | ZIP (updater) | `OK-Code-*-arm64.zip`, etc. |
37+
| Linux x64 | AppImage | `*.AppImage` |
38+
| Windows x64 | NSIS installer | `*.exe` |
2439

2540
## Electron updater metadata
2641

2742
| File | Purpose |
2843
| ------------------ | --------------------------------------------------------- |
2944
| `latest-mac.yml` | macOS update manifest (merged from per-arch builds in CI) |
30-
| `latest-linux.yml` | Linux update manifest |
31-
| `latest.yml` | Windows update manifest |
45+
| `latest-linux.yml` | Linux update manifest (when published) |
46+
| `latest.yml` | Windows update manifest (when published) |
3247
| `*.blockmap` | Differential download block maps |
3348

3449
## Checksums

0 commit comments

Comments
 (0)