@@ -82,9 +82,9 @@ Notice that the deploy command has `--env preview` at the end. We automatically
82
82
83
83
You can manually specify the branch using `--branch <branch-name>` in the deploy command, but this isn't required.
84
84
85
- # # Manually creating, deploying and archiving preview branches
85
+ # # Using the CLI to create, deploy and archive preview branches
86
86
87
- # ## Using the CLI
87
+ # ## Deploying a preview branch
88
88
89
89
Creating and deploying a preview branch manually is easy :
90
90
@@ -98,6 +98,8 @@ This will create and deploy a preview branch, automatically detecting the git br
98
98
npx trigger.dev@v4-beta deploy --env preview --branch <branch-name>
99
99
` ` `
100
100
101
+ # ## Archiving a preview branch
102
+
101
103
You can manually archive a preview branch with the CLI :
102
104
103
105
` ` ` bash
@@ -106,16 +108,13 @@ npx trigger.dev@v4-beta preview archive
106
108
107
109
Again we will try auto-detect the current branch. But you can specify the branch name with `--branch <branch-name>`.
108
110
109
- # ## In the dashboard
110
-
111
- # ## Creating and archiving preview branches from the dashboard
112
-
113
- In the dashboard, you can
111
+ # # Creating and archiving preview branches from the dashboard
114
112
115
- # # Automating using GitHub Actions
113
+ From the "Preview branches" page you can create a branch :
116
114
117
- # # Limits
115
+ 
116
+ 
118
117
119
- # # Triggering runs on preview branches
118
+ You can also archive a branch :
120
119
121
- When triggering runs for a preview branch you need to both set the `TRIGGER_SECRET_KEY` (to your Preview API key) and set `TRIGGER_PREVIEW_BRANCH` to the name of your branch.
120
+ 
0 commit comments