Skip to content

Commit 194f336

Browse files
committed
Added an image of where to set the v3 GitHub action secret
1 parent 2e02743 commit 194f336

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed
173 KB
Loading

docs/v3/github-actions.mdx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ description: "You can easily deploy your tasks with GitHub actions."
55

66
This simple GitHub action file will deploy you Trigger.dev tasks when new code is pushed to the `main` branch and the `trigger` directory has changes in it.
77

8-
<Warning>The deploy step will fail if any version mismatches are detected. Please see the [version pinning](/v3/github-actions#version-pinning) section for more details.</Warning>
8+
<Warning>
9+
The deploy step will fail if any version mismatches are detected. Please see the [version
10+
pinning](/v3/github-actions#version-pinning) section for more details.
11+
</Warning>
912

1013
<CodeGroup>
1114

@@ -30,7 +33,7 @@ jobs:
3033
uses: actions/setup-node@v4
3134
with:
3235
node-version: "20.x"
33-
36+
3437
- name: Install dependencies
3538
run: npm install
3639

@@ -41,7 +44,6 @@ jobs:
4144
npx trigger.dev@beta deploy
4245
```
4346
44-
4547
```yaml .github/workflows/release-trigger-staging.yml
4648
name: Deploy to Trigger.dev (staging)
4749

@@ -60,7 +62,7 @@ jobs:
6062
uses: actions/setup-node@v4
6163
with:
6264
node-version: "20.x"
63-
65+
6466
- name: Install dependencies
6567
run: npm install
6668

@@ -70,6 +72,7 @@ jobs:
7072
run: |
7173
npx trigger.dev@beta deploy --env staging
7274
```
75+
7376
</CodeGroup>
7477
7578
If you already have a GitHub action file, you can just add the final step "🚀 Deploy Trigger.dev" to your existing file.
@@ -78,6 +81,17 @@ You need to add the `TRIGGER_ACCESS_TOKEN` secret to your repository. You can cr
7881

7982
To set it in GitHub go to your repository, click on "Settings", "Secrets and variables" and then "Actions". Add a new secret with the name `TRIGGER_ACCESS_TOKEN` and use the value of your access token.
8083

84+
<Accordion title="How to add TRIGGER_ACCESS_TOKEN in GitHub">
85+
1. Go to your repository on GitHub.
86+
2. Click on "Settings".
87+
3. Click on "Secrets and variables" -> "Actions"
88+
4. Click on "New repository secret".
89+
5. Add the name `TRIGGER_ACCESS_TOKEN` and the value of your access token.
90+
91+
![Add TRIGGER_ACCESS_TOKEN in GitHub](/images/v3/github-access-token.png)
92+
93+
</Accordion>
94+
8195
## Version pinning
8296

8397
The CLI and `@trigger.dev/*` package versions need to be in sync, otherwise there will be errors and unpredictable behavior. Hence, the `deploy` command will automatically fail during CI on any version mismatches.

0 commit comments

Comments
 (0)