Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit b2d613a

Browse files
committed
fix: github pages deployment
1 parent 9fe9dc9 commit b2d613a

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Context Editor to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "20"
27+
cache: 'npm'
28+
cache-dependency-path: 'examples/context-editor/package-lock.json'
29+
- name: Setup Pages
30+
uses: actions/configure-pages@v5
31+
- name: Install dependencies
32+
run: |
33+
cd examples/context-editor
34+
npm ci
35+
- name: Build
36+
run: |
37+
cd examples/context-editor
38+
npm run build
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: examples/context-editor/build
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

examples/context-editor/.context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
module-name: Context Editor
33
related-modules:
44
- ../../linters/typescript: TypeScript linter for validating context files
5+
description: A editor to get started easily with the various file types in the CCS, .context.md, .contextdocs, and .contextignore
56
version: 1.0.0
67
diagrams: []
78
technologies:
@@ -36,7 +37,6 @@ development:
3637
- Run `npm install` in the project directory
3738
build-command: npm run build
3839
test-command: npm test
39-
start-command: npm start
4040
business-requirements:
4141
key-features:
4242
- User-friendly interface for creating .context.md files

0 commit comments

Comments
 (0)