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
Copy file name to clipboardExpand all lines: docs/v3/github-actions.mdx
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,10 @@ description: "You can easily deploy your tasks with GitHub actions."
5
5
6
6
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.
7
7
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.
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
78
81
79
82
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.
80
83
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
+

92
+
93
+
</Accordion>
94
+
81
95
## Version pinning
82
96
83
97
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