From c1b9c383de50f21bf0ddb12dc0056eccffbad599 Mon Sep 17 00:00:00 2001 From: Fabian Hedin Date: Thu, 21 Nov 2024 13:57:08 +0100 Subject: [PATCH] add redirect and update workflow --- .github/workflows/docs.yml | 13 ++++--------- netlify.toml | 5 +++++ 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 netlify.toml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 98df2e4..9bae42a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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: @@ -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 }} diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..e8b0015 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,5 @@ +[[redirects]] + from = "https://docs.gptengineer.app/*" + to = "https://docs.lovable.dev/:splat" + status = 301 + force = true