From 1486feace42635fc0c4ec5834d949479a5162143 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Tue, 1 Apr 2025 15:07:52 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20keep=20database=20in=20main=20br?= =?utf8?q?anch?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .github/workflows/fontspectorall.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fontspectorall.yaml b/.github/workflows/fontspectorall.yaml index a0a164c12..6276bfea7 100644 --- a/.github/workflows/fontspectorall.yaml +++ b/.github/workflows/fontspectorall.yaml @@ -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 -- 2.47.2