-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (83 loc) · 2.6 KB
/
Copy pathrelease.yml
File metadata and controls
103 lines (83 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build-windows:
name: Build Windows installer
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Check source
run: npm run lint && npm run platform:validate && npm run codex-config:validate
- name: Build installer
run: npm run pack:win
- name: Upload Windows installer
uses: actions/upload-artifact@v4
with:
name: windows-installer
if-no-files-found: error
path: |
release/CodexAuthSwitch-Setup-*.exe
release/CodexAuthSwitch-Setup-*.exe.blockmap
build-macos:
name: Build macOS installers
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Check source
run: npm run lint && npm run platform:validate && npm run codex-config:validate
- name: Build Intel and Apple Silicon DMGs
run: npm run pack:mac
env:
CSC_IDENTITY_AUTO_DISCOVERY: "false"
- name: Upload macOS installers
uses: actions/upload-artifact@v4
with:
name: macos-installers
if-no-files-found: error
path: release/*.dmg*
publish-release:
name: Publish GitHub Release
needs:
- build-windows
- build-macos
runs-on: ubuntu-latest
steps:
- name: Download installers
uses: actions/download-artifact@v4
with:
path: release-assets
merge-multiple: true
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
name: CodexAuth Switch ${{ github.ref_name }}
body: |
CodexAuth Switch release for Windows and macOS.
- Windows x64 installer
- macOS DMGs for Apple Silicon and Intel
- DPAPI encryption on Windows and Keychain-backed encryption on macOS
- Local account snapshots, quota estimates, and token usage statistics
- No Codex conversation history upload
- The installers are not commercially code-signed or Apple-notarized, so the operating system may show a security warning.
files: release-assets/**