7
7
- ui@*
8
8
9
9
concurrency :
10
- group : legacy.buildwithfern .com
10
+ group : legacy.ferndocs .com
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
14
deploy_app_buildwithfern_com :
15
15
runs-on : ubuntu-latest
16
16
if : github.ref_type == 'tag' && github.event_name == 'push'
17
17
environment :
18
- name : Production - legacy.buildwithfern .com
18
+ name : Production - legacy.ferndocs .com
19
19
url : ${{ steps.deploy.outputs.deployment_url }}
20
20
outputs :
21
21
deployment_url : ${{ steps.deploy.outputs.deployment_url }}
26
26
- name : Build & Deploy to Vercel
27
27
id : deploy
28
28
run : |
29
- pnpm vercel-scripts deploy legacy.buildwithfern .com --token=${{ secrets.VERCEL_TOKEN }} --environment=production
29
+ pnpm vercel-scripts deploy legacy.ferndocs .com --token=${{ secrets.VERCEL_TOKEN }} --environment=production
30
30
echo "deployment_url=$(cat deployment-url.txt)" >> $GITHUB_OUTPUT
31
31
32
32
deploy_app_ferndocs_com :
72
72
# TODO: Fix the tests and run them before promoting the deployment
73
73
ete :
74
74
needs :
75
- - deploy_app_buildwithfern_com # only the legacy.buildwithfern .com deployment is an E2E candidate but ideally all deployments should be tested
75
+ - deploy_app_buildwithfern_com # only the legacy.ferndocs .com deployment is an E2E candidate but ideally all deployments should be tested
76
76
- promote
77
77
if : needs.deploy_app_buildwithfern_com.outputs.deployment_url
78
78
uses : ./.github/workflows/playwright.yml
91
91
steps :
92
92
- uses : actions/checkout@v4
93
93
- uses : ./.github/actions/install
94
- - name : Revalidate all legacy.buildwithfern .com deployments
95
- run : pnpm vercel-scripts revalidate-all legacy.buildwithfern .com --token ${{ secrets.VERCEL_TOKEN }}
94
+ - name : Revalidate all legacy.ferndocs .com deployments
95
+ run : pnpm vercel-scripts revalidate-all legacy.ferndocs .com --token ${{ secrets.VERCEL_TOKEN }}
96
96
97
97
rollback :
98
98
needs : ete
@@ -106,13 +106,13 @@ jobs:
106
106
- name : Rollback on failure # remove this step once we switch back to pre-promotion testing
107
107
run : |
108
108
echo "E2E tests failed. Rolling back deployment"
109
- pnpm vercel-scripts rollback legacy.buildwithfern .com --token ${{ secrets.VERCEL_TOKEN }}
109
+ pnpm vercel-scripts rollback legacy.ferndocs .com --token ${{ secrets.VERCEL_TOKEN }}
110
110
pnpm vercel-scripts rollback app.ferndocs.com --token ${{ secrets.VERCEL_TOKEN }}
111
111
pnpm vercel-scripts rollback app-slash.ferndocs.com --token ${{ secrets.VERCEL_TOKEN }}
112
112
113
- # currently only the custom domains for legacy.buildwithfern .com deployment should be revalidated
113
+ # currently only the custom domains for legacy.ferndocs .com deployment should be revalidated
114
114
# because the other deployments don't have custom domains (yet)
115
- pnpm vercel-scripts revalidate-all legacy.buildwithfern .com --token ${{ secrets.VERCEL_TOKEN }}
115
+ pnpm vercel-scripts revalidate-all legacy.ferndocs .com --token ${{ secrets.VERCEL_TOKEN }}
116
116
echo "All docs deployments have been rolled back successfully!"
117
117
exit 1
118
118
0 commit comments