diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 8ac07fa6..04ce6799 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,6 +27,8 @@ jobs: run: swift --version - name: Build run: xcrun docc convert swift-6-beta.docc --output-path ./docs --transform-for-static-hosting --experimental-enable-custom-templates + - name: Copy Redirects + run: cp swift-6-beta.docc/_redirects ./docs/_redirects - name: Publish uses: cloudflare/pages-action@v1 with: diff --git a/swift-6-beta.docc/_redirects b/swift-6-beta.docc/_redirects new file mode 100644 index 00000000..1b79d577 --- /dev/null +++ b/swift-6-beta.docc/_redirects @@ -0,0 +1 @@ +/ /documentation/the-swift-programming-language 301!