Skip to content

Commit a03d2dc

Browse files
mgarbsclaudePavelSBorisov
authored
Modern HIPs site built with Vite (#1423)
Signed-off-by: Michael Garber <michael.garber@hashgraph.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Pavel Borisov <37436896+PavelSBorisov@users.noreply.github.com>
1 parent aa67b6e commit a03d2dc

36 files changed

Lines changed: 7075 additions & 1306 deletions

.codacy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
exclude_paths:
3+
- "site/package-lock.json"
4+
- "site/node_modules/**"
5+
- "site/dist/**"

.github/workflows/deploy-site.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Deploy Site
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+
pull-requests: read
13+
discussions: read
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
runs-on: hiero-improvement-proposals-linux-medium
22+
steps:
23+
- name: Harden the runner (Audit all outbound calls)
24+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
25+
with:
26+
egress-policy: audit
27+
28+
- name: Checkout
29+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30+
31+
- name: Setup Node.js
32+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
33+
with:
34+
node-version: "20"
35+
36+
- name: Install dependencies
37+
working-directory: site
38+
run: npm ci
39+
40+
- name: Build data
41+
working-directory: site
42+
run: npm run build:data
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Build site
47+
working-directory: site
48+
run: npm run build
49+
50+
- name: Setup Pages
51+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
52+
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
55+
with:
56+
path: site/dist
57+
58+
deploy:
59+
environment:
60+
name: github-pages
61+
url: ${{ steps.deployment.outputs.page_url }}
62+
runs-on: hiero-improvement-proposals-linux-medium
63+
needs: build
64+
steps:
65+
- name: Harden the runner (Audit all outbound calls)
66+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
67+
with:
68+
egress-policy: audit
69+
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac2b3c603fc # v4.0.5

.github/workflows/validateHeaders.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ jobs:
3939
PR_NUMBER=${{ github.event.pull_request.number }}
4040
REPO=${{ github.repository }}
4141
PR_DATA=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$REPO/pulls/$PR_NUMBER/files")
42-
MD_FILES=$(echo "$PR_DATA" | jq -r '.[] | select(.filename | test(".md$")) | .filename')
42+
MD_FILES=$(echo "$PR_DATA" | jq -r '.[] | select(.filename | test(".md$")) | select(.status != "removed") | .filename')
4343
4444
for FILE in $MD_FILES; do
4545
FULL_PATH="${{ github.workspace }}/$FILE"
4646
if [[ -f "$FULL_PATH" ]]; then
4747
node "${{ github.workspace }}/scripts/validateHIP.js" "$FULL_PATH"
4848
else
49-
echo "No file found for $FILE"
50-
exit 1
49+
echo "Skipping $FILE (not found on disk)"
5150
fi
5251
done

404.html

Lines changed: 0 additions & 24 deletions
This file was deleted.

Gemfile

Lines changed: 0 additions & 46 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 96 deletions
This file was deleted.

_config.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)