ci(docs/preview): Leverage new git-pages preview feature from whitequark

With ten billion thanks to whitequark
This commit is contained in:
Julian Anderson committed 2026-11-24 16:42:35 -05:00
1 parent 8205455ec5
commit 515758955c
2 files changed
+5 -9

No files matched your search

+5 -7
View File
@@ -48,7 +48,7 @@ jobs:
- name: Build Rspress documentation
env:
SITE_PATH: ${{ github.ref != 'refs/heads/main' && format('/{0}/', '${{ forgejo.event.number }}') || '/' }}
SITE_PATH: ${{ github.ref != 'refs/heads/main' && format('/@{0}/', forgejo.event.number) || '/' }}
run: npm run docs:build
- name: Install Wrangler
@@ -69,14 +69,12 @@ jobs:
- name: Deploy to Grebedoc (Preview)
if: github.ref != 'refs/heads/main'
# Needs http for at least first deploy per docs:
# https://codeberg.org/git-pages/git-pages-cli#forge-authorization
# (ctrl-F for "it is not possible to publish a site")
run: |
~/go/bin/git-pages-cli https://preview.continuwuity.org \
--password "${{ secrets.GREBEDOC_PASSWORD }}" \
~/go/bin/git-pages-cli https://preview.continuwuity.org/@${{ forgejo.event.number }} \
--server grebedoc.dev \
--token "${{ forgejo.token }}" \
--upload-dir doc_build \
--path "${{ forgejo.event.number }}" \
--pretty-urls \
--expires 14 \
--comment "${{ forgejo.sha }}" \
--verbose
-2
View File
@@ -1,6 +1,4 @@
/.well-known/matrix/*
Access-Control-Allow-Origin: *
Content-Type: application/json
/.well-known/continuwuity/*
Access-Control-Allow-Origin: *
Content-Type: application/json