Skip to content

Commit

Permalink
add redirect and update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fabhed committed Nov 21, 2024
1 parent 7448c90 commit c1b9c38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ name: Docs

on:
push:
branches: [main]
branches: [netlify-legacy-for-redirect]
paths:
- '**'
- '.github/workflows/docs.yml'
pull_request:
branches: ["*"]
paths:
- '**'
- '.github/workflows/docs.yml'
- "**"
- ".github/workflows/docs.yml"
workflow_dispatch: # Add this line to enable manual triggering

jobs:
Expand All @@ -32,7 +27,7 @@ jobs:
# We deploy from GitHub Actions instead of via Netlify builders,
# because Netlify builders don't support Python 3.8+
- name: Deploy to Netlify
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/netlify-legacy-for-redirect'
uses: jsmrcaga/action-netlify-deploy@v2.1.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[redirects]]
from = "https://docs.gptengineer.app/*"
to = "https://docs.lovable.dev/:splat"
status = 301
force = true

0 comments on commit c1b9c38

Please sign in to comment.