Skip to content

Commit 9dd7ed4

Browse files
authored
Add branded GitHub Pages site (#1)
* Add branded GitHub Pages site * Opt GitHub Actions into Node 24
1 parent 37f651b commit 9dd7ed4

8 files changed

Lines changed: 924 additions & 0 deletions

File tree

.github/workflows/pages.yml

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