Skip to content

Commit c1b9c38

Browse files
committed
add redirect and update workflow
1 parent 7448c90 commit c1b9c38

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/docs.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@ name: Docs
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [netlify-legacy-for-redirect]
66
paths:
7-
- '**'
8-
- '.github/workflows/docs.yml'
9-
pull_request:
10-
branches: ["*"]
11-
paths:
12-
- '**'
13-
- '.github/workflows/docs.yml'
7+
- "**"
8+
- ".github/workflows/docs.yml"
149
workflow_dispatch: # Add this line to enable manual triggering
1510

1611
jobs:
@@ -32,7 +27,7 @@ jobs:
3227
# We deploy from GitHub Actions instead of via Netlify builders,
3328
# because Netlify builders don't support Python 3.8+
3429
- name: Deploy to Netlify
35-
if: github.ref == 'refs/heads/main'
30+
if: github.ref == 'refs/heads/netlify-legacy-for-redirect'
3631
uses: jsmrcaga/[email protected]
3732
with:
3833
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}

netlify.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[[redirects]]
2+
from = "https://docs.gptengineer.app/*"
3+
to = "https://docs.lovable.dev/:splat"
4+
status = 301
5+
force = true

0 commit comments

Comments
 (0)