Skip to content

Commit a1c2c07

Browse files
committed
Add branded GitHub Pages site
1 parent 37f651b commit a1c2c07

8 files changed

Lines changed: 921 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Publish GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Check out repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 22
32+
cache: npm
33+
34+
- name: Configure GitHub Pages
35+
uses: actions/configure-pages@v5
36+
37+
- name: Install dependencies
38+
run: npm ci
39+
40+
- name: Build site
41+
run: npm run build
42+
43+
- name: Upload Pages artifact
44+
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: ./dist
47+
48+
deploy:
49+
if: github.event_name != 'pull_request'
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ ClientBin/
256256
*.publishsettings
257257
orleans.codegen.cs
258258

259+
# Node-based site build
260+
node_modules/
261+
dist/
262+
259263
# Including strong name files can present a security risk
260264
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
261265
#*.snk

package-lock.json

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "tps-site",
3+
"version": "1.0.0",
4+
"private": true,
5+
"description": "Build pipeline for the TPS documentation site.",
6+
"type": "module",
7+
"scripts": {
8+
"build": "node scripts/build-site.mjs"
9+
},
10+
"dependencies": {
11+
"highlight.js": "^11.11.1",
12+
"markdown-it": "^14.1.0",
13+
"markdown-it-anchor": "^9.2.0"
14+
}
15+
}

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tps.managed-code.com

public/favicon.svg

Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)