Separate build path and git path

This commit is contained in:
Simon Cozens
2025-03-27 10:08:54 +00:00
parent 7abd1df08c
commit c1192f5589
2 changed files with 5 additions and 3 deletions

View 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
};

View 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: