Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 51f0e7c

Browse files
authored
Modify workflow to include app-repo.json and copy it
1 parent 92b267f commit 51f0e7c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/jekyll-gh-pages.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ on:
44
# Run manually
55
workflow_dispatch:
66

7-
# Run on push, but only if /website/ changed
7+
# Run on push if website changed OR the root JSON changed
88
push:
99
branches: ["main"]
1010
paths:
1111
- 'website/**'
12+
- 'app-repo.json' # <- include the root file so changes to it trigger a build
1213

1314
permissions:
1415
contents: read
@@ -26,6 +27,17 @@ jobs:
2627
- name: Checkout
2728
uses: actions/checkout@v4
2829

30+
# COPY the single root file into the website/ source so Jekyll will include it
31+
- name: Copy root JSON into website (if present)
32+
run: |
33+
if [ -f ./app-repo.json ]; then
34+
echo "Found app-repo.json — copying into website/"
35+
mkdir -p website
36+
cp ./app-repo.json website/app-repo.json
37+
else
38+
echo "No app-repo.json in repo root — skipping copy"
39+
fi
40+
2941
- name: Setup Pages
3042
uses: actions/configure-pages@v5
3143

0 commit comments

Comments
 (0)