Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Move to help dir

Manav Rathi3d3843aca748
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index 778ef4fd59..a42dd48db5 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -39,9 +39,16 @@ jobs:
# Will create docs/.vitepress/dist
run: yarn build
+ - name: Prepare deployment with help subdirectory
+ run: |
+ mkdir -p docs/deploy/help
+ mv docs/docs/.vitepress/dist/* docs/deploy/help/
+ # Create a redirect at root to /help/
+ echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=/help/"></head></html>' > docs/deploy/index.html
+
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- command: pages deploy --project-name=ente --commit-dirty=true --branch=help-content docs/docs/.vitepress/dist
+ command: pages deploy --project-name=ente --commit-dirty=true --branch=help-content docs/deploy