feat(model-signals): add daily and project efficiency metrics #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build static preview | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install frontend dependencies | |
| working-directory: frontend | |
| run: npm ci | |
| - name: Build Vue static demo | |
| working-directory: frontend | |
| env: | |
| VITE_AGENTMETER_STATIC_DEMO: "true" | |
| run: npm run build | |
| - name: Prepare Pages artifact metadata | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| cp site/.nojekyll frontend/dist/.nojekyll | |
| cp site/robots.txt frontend/dist/robots.txt | |
| cp site/sitemap.xml frontend/dist/sitemap.xml | |
| cp llms.txt frontend/dist/llms.txt | |
| mkdir -p frontend/dist/assets | |
| cp docs/assets/social-preview.png frontend/dist/assets/social-preview.png | |
| test -f frontend/dist/index.html | |
| test -f frontend/dist/robots.txt | |
| test -f frontend/dist/sitemap.xml | |
| test -f frontend/dist/llms.txt | |
| test -f frontend/dist/assets/social-preview.png | |
| - name: Configure GitHub Pages | |
| uses: actions/configure-pages@v5 | |
| with: | |
| enablement: true | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: frontend/dist | |
| deploy: | |
| name: Deploy static preview | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |