Skip to content

Commit 91729f0

Browse files
committed
feat: add static site dashboard with GitHub Pages deployment
- Add Copilot API Usage Dashboard as static HTML page - Include interactive UI with loading spinner and data visualization - Add GitHub Actions workflow for automatic Pages deployment - Configure OpenCode MCP with Playwright for testing
1 parent 408665b commit 91729f0

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
deploy:
22+
runs-on: ubuntu-latest
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v4
32+
33+
- name: Upload artifact
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: ./pages
37+
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v4

opencode.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"mcp": {
3+
"playwright": {
4+
"type": "local",
5+
"command": [
6+
"docker",
7+
"container",
8+
"run",
9+
"-i",
10+
"--rm",
11+
"--init",
12+
"--network",
13+
"host",
14+
"mcr.microsoft.com/playwright/mcp"
15+
],
16+
"enabled": true
17+
}
18+
},
19+
"$schema": "https://opencode.ai/config.json"
20+
}

0 commit comments

Comments
 (0)