]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Don’t keep database in main branch 9290/head
authorSimon Cozens <simon@simon-cozens.org>
Tue, 1 Apr 2025 14:07:52 +0000 (15:07 +0100)
committerSimon Cozens <simon@simon-cozens.org>
Tue, 1 Apr 2025 14:46:05 +0000 (15:46 +0100)
.github/workflows/fontspectorall.yaml

index a0a164c12d45aa6a9a66d9b9e5d03997783304cf..6276bfea73d281a152a6aae4f79b81272206e047 100644 (file)
@@ -13,6 +13,8 @@ jobs:
         with:
           ref: main
           lfs: true
+      - name: Grab fontspector database
+        run: git fetch origin gh-pages; git checkout gh-pages; cp fontspector-dashboard/fontspector.db .ci/fontspector-dashboard/src/fontspector.db || true; git checkout main
       - name: Install protoc
         run: brew install protobuf
       - name: Install Rust
@@ -21,12 +23,8 @@ jobs:
         run: cargo install --git https://github.com/fonttools/fontspector --features duckdb
       - name: Test all the things
         run: fontspector --profile googlefonts ofl/*/*{.ttf,.pb,*html,*svg,*jpg,*gif} --skip-network --succinct --duckdb .ci/fontspector-dashboard/src/fontspector.db || true
-      - name: Upload results
-        uses: stefanzweifel/git-auto-commit-action@v5
-        with:
-          file_pattern: .ci/fontspector-dashboard/src/fontspector.db
       - name: Build dashboard
-        run: cd .ci/fontspector-dashboard && npm install && npm run build
+        run: cd .ci/fontspector-dashboard && npm install && npm run build && cp src/fontspector.db ../../fontspector-dashboard-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