]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Separate build path and git path
authorSimon Cozens <simon@simon-cozens.org>
Thu, 27 Mar 2025 10:08:54 +0000 (10:08 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Tue, 1 Apr 2025 08:15:48 +0000 (09:15 +0100)
.ci/fontspector-dashboard/observablehq.config.js
.github/workflows/fontspectorall.yaml

index bbf5a6bf90236418845e026aa74f125640c6bf47..919858e81f65eeb89b4cb2d8785a02449339c601 100644 (file)
@@ -4,6 +4,6 @@ export default {
   root: "src",
   footer: "",
   sidebar: false, // whether to show the sidebar
-  output: "../../fontspector-dashboard", // path to the output root for build
+  output: "../../fontspector-dashboard-build", // path to the output root for build
   preserveExtension: true
 };
index 8135005c1dcb5e550db92d8676fe4081b2e50367..be349d9600fbba989ec830ebbd2e7afc40ea7f6b 100644 (file)
@@ -22,8 +22,10 @@ jobs:
         uses: stefanzweifel/git-auto-commit-action@v5
         with:
           file_pattern: .ci/fontspector-dashboard/src/fontspector.db
-      - name: Rebuild dashboard
-        run: rm -rf fontspector-dashboard && cd .ci/fontspector-dashboard && npm install && npm run build
+      - name: Build dashboard
+        run: cd .ci/fontspector-dashboard && npm install && npm run build
+      - name: Add to branch
+        run: git checkout gh-pages; git rm -rf fontspector-dashboard || true; rm -rf fontspector-dashboard || true; mv fontspector-dashboard-build fontspector-dashboard
       - name: Upload results
         uses: stefanzweifel/git-auto-commit-action@v5
         with: