Free Motion Capture for Everyone πβ¨
TypeScript
docs
jonmatthisb9f0cba9004c
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.ymlindex dca6c4b0..49a92f5a 100644--- a/.github/workflows/deploy-docs.yml+++ b/.github/workflows/deploy-docs.yml@@ -1,11 +1,19 @@name: Deploy docs siteon:+ # Docs-only changes pushed to the active branch.push:- branches: [development]+ branches: [main]paths:- 'freemocap-docs/**'- '.github/workflows/deploy-docs.yml'+ # Rebuild after every release/installer run so the download page picks up the new+ # version and its R2 asset links. Fires when the build-installers workflow finishes+ # (which runs on every v* tag). NOTE: workflow_run only triggers when THIS file is on+ # the repo's default branch.+ workflow_run:+ workflows: ['Build installers (Pyinstaller + Electron)']+ types: [completed]workflow_dispatch:permissions:diff --git a/freemocap-docs/src/components/download/downloads.ts b/freemocap-docs/src/components/download/downloads.tsindex 386882e1..1db00755 100644--- a/freemocap-docs/src/components/download/downloads.ts+++ b/freemocap-docs/src/components/download/downloads.ts@@ -52,7 +52,9 @@ export function getReleaseBaseUrl(version: string): string {export const R2_PUBLIC_URL = 'https://pub-0a275a10417e425c94e48de393793129.r2.dev';export function getR2BaseUrl(version: string): string {- return `${R2_PUBLIC_URL}/${version}`;+ // Must match the R2 object key the release workflow uploads to:+ // s3://<bucket>/releases/v<version>/<file> (see build-installers-pyinstaller.yml)+ return `${R2_PUBLIC_URL}/releases/v${version}`;}/** True for builds whose release assets live on R2 instead of GitHub.