Skip to content

Commit 01fb8a7

Browse files
committed
minor changes
1 parent 5729f29 commit 01fb8a7

3 files changed

Lines changed: 25 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
if: inputs.update_content
7070
uses: anthropics/claude-code-action@v1
7171
with:
72-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
72+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
7373
prompt: |
7474
You are updating the Phase Nexa website. Read CLAUDE.md for full instructions.
7575

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: anthropics/claude-code-action@v1
2727
with:
28-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
28+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}

GITHUB_SETUP.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,26 @@ git remote add origin git@github.com:phasenexa/phasenexa.github.io.git
3333
git push -u origin main
3434
```
3535

36-
## 3. Add the Anthropic API key secret
36+
## 3. Add the Claude Code OAuth token secret
3737

38-
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:
3947

4048
1. Go to **Settings > Secrets and variables > Actions**
4149
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`
4452
5. Click **Add secret**
4553

54+
Note: OAuth tokens expire. If workflows start failing with auth errors, regenerate the token with `claude setup-token` and update the secret.
55+
4656
## 4. Run the build workflow
4757

4858
1. Go to **Actions** tab
@@ -80,13 +90,17 @@ To enable this, edit `.github/workflows/build.yml` and add to the Retype build s
8090
RETYPE_KEY: ${{ secrets.RETYPE_KEY }}
8191
```
8292
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+
```
84100

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.
86102

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.
90104

91105
## Branch protection (recommended)
92106

0 commit comments

Comments
 (0)