Skip to content

Commit e92eef1

Browse files
committed
Add disagg calculator to github pages
1 parent 107c0d7 commit e92eef1

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'Container-Root/eks/deployment/inference/agentic-ai/disagg-calculator/web/**'
8+
- '.github/workflows/pages.yml'
9+
workflow_dispatch: # Allow manual trigger
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
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: Assemble site
31+
run: |
32+
mkdir -p _site/calc-disagg
33+
cp -r Container-Root/eks/deployment/inference/agentic-ai/disagg-calculator/web/* _site/calc-disagg/
34+
35+
- name: Configure Pages
36+
uses: actions/configure-pages@v4
37+
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: './_site'
42+
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)