You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is needed for both the `build.yml` (Claude Code content updates) and `claude.yml` (@claude mentions) workflows.
38
+
This is needed for both the `build.yml` (Claude Code content updates) and `claude.yml` (@claude mentions) workflows. It uses your Claude Pro/Max subscription credits rather than a separate API budget.
39
+
40
+
First, generate the token locally:
41
+
42
+
```bash
43
+
claude setup-token
44
+
```
45
+
46
+
Then add it to your repo:
39
47
40
48
1. Go to **Settings > Secrets and variables > Actions**
41
49
2. Click **New repository secret**
42
-
3. Name: `ANTHROPIC_API_KEY`
43
-
4. Value: your Anthropic API key
50
+
3. Name: `CLAUDE_CODE_OAUTH_TOKEN`
51
+
4. Value: the token from `claude setup-token`
44
52
5. Click **Add secret**
45
53
54
+
Note: OAuth tokens expire. If workflows start failing with auth errors, regenerate the token with `claude setup-token` and update the secret.
55
+
46
56
## 4. Run the build workflow
47
57
48
58
1. Go to **Actions** tab
@@ -80,13 +90,17 @@ To enable this, edit `.github/workflows/build.yml` and add to the Retype build s
80
90
RETYPE_KEY: ${{ secrets.RETYPE_KEY }}
81
91
```
82
92
83
-
## 7. Optional: Install Claude GitHub App
93
+
## 7. Optional: Install Claude GitHub App (alternative to steps 3)
94
+
95
+
Instead of manually creating the OAuth token, you can do the whole setup from Claude Code:
96
+
97
+
```bash
98
+
claude /install-github-app
99
+
```
84
100
85
-
For the `@claude` mention workflow to work fully:
101
+
This walks you through installing the Claude GitHub App, generates the token, and creates the workflow files. It will set up the `CLAUDE_CODE_OAUTH_TOKEN` secret automatically.
86
102
87
-
1. Install the Claude GitHub App: [github.com/apps/claude](https://github.com/apps/claude)
88
-
2. Grant it access to the `phasenexa.github.io` repository
89
-
3. Alternatively, the `claude.yml` workflow uses `anthropics/claude-code-action@v1` with your API key, which works without the app
103
+
If you prefer manual control, steps 3 above works fine.
0 commit comments