Skip to content

Commit 4e09b90

Browse files
NAOR YUVALNAOR YUVAL
authored andcommitted
revert to peaceiris (gh-pages), add explicit Pages setup instructions
Made-with: Cursor
1 parent 8d23cc8 commit 4e09b90

2 files changed

Lines changed: 15 additions & 21 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Deploy unified MPCP docs to https://mpcp-protocol.github.io/
22
# Site structure: / (landing) | /spec | /reference
33
#
4-
# Requires: Settings → Pages → Build and deployment → Source: GitHub Actions
4+
# CRITICAL: Settings → Pages → Source: Deploy from a branch
5+
# Branch: gh-pages | Folder: / (root)
6+
# If you use "main", only the landing page will load (404 on /spec, /reference)
57
name: Deploy Docs
68

79
on:
@@ -12,18 +14,11 @@ on:
1214
types: [deploy-docs]
1315

1416
permissions:
15-
contents: read
16-
pages: write
17-
id-token: write
18-
19-
concurrency:
20-
group: pages
21-
cancel-in-progress: false
17+
contents: write
2218

2319
jobs:
2420
deploy:
2521
runs-on: ubuntu-latest
26-
environment: pages
2722
steps:
2823
- name: Checkout org site
2924
uses: actions/checkout@v4
@@ -67,17 +62,13 @@ jobs:
6762
cp -r _site_spec site/spec
6863
cp -r _site_reference site/reference
6964
touch site/.nojekyll
70-
# Verify structure
7165
test -f site/spec/index.html || (echo "Missing site/spec/index.html" && exit 1)
7266
test -f site/reference/index.html || (echo "Missing site/reference/index.html" && exit 1)
73-
echo "Site structure OK:"
67+
echo "Site structure OK"
7468
find site -name index.html | head -20
7569
76-
- name: Upload artifact
77-
uses: actions/upload-pages-artifact@v3
70+
- name: Deploy to GitHub Pages (gh-pages branch)
71+
uses: peaceiris/actions-gh-pages@v4
7872
with:
79-
path: ./site
80-
81-
- name: Deploy to GitHub Pages
82-
id: deployment
83-
uses: actions/deploy-pages@v4
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
74+
publish_dir: ./site

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Unified documentation site for the Machine Payment Control Protocol (MPCP).
1313

1414
1. Create the `mpcp-protocol.github.io` repository in the mpcp-protocol organization.
1515
2. Push this content to `main`.
16-
3. GitHub Settings → Pages → Source: **GitHub Actions**
17-
4. Run the "Deploy Docs" workflow (runs on push to `main`, or manually).
18-
4. The deploy workflow builds both sites and publishes on push to `main` or via manual trigger.
16+
3. **Configure Pages** (critical for /spec and /reference to work):
17+
- Repo **Settings****Pages**
18+
- **Build and deployment****Source**: **Deploy from a branch**
19+
- **Branch**: `gh-pages` (not `main`)
20+
- **Folder**: `/ (root)`
21+
4. Run **Actions****Deploy Docs** (runs on push to `main`, or trigger manually).

0 commit comments

Comments
 (0)