Skip to content

Commit f017eca

Browse files
committed
test(docs): add forks/amsterdocs to allowlist for testing
- Temporary entry to test producer workflow from ephemeral branch. - Disable docc build (slow) and use placeholder for spec/index.html. - Remove after testing is complete.
1 parent 9f25e97 commit f017eca

2 files changed

Lines changed: 26 additions & 11 deletions

File tree

.github/configs/docs-branches.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ branches:
1818
label: "Amsterdam"
1919
- path: "devnets/amsterdam/2"
2020
label: "Amsterdam Devnet 2"
21+
# TEMPORARY: Remove after testing
22+
- path: "forks/amsterdocs"
23+
label: "Test Branch"

.github/workflows/docs-build.yaml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,16 @@ jobs:
146146
147147
- name: Build rendered spec
148148
run: |
149-
uv run docc --output .tox/docs-spec
149+
# TODO: Re-enable docc build after testing (slow)
150+
# uv run docc --output .tox/docs-spec
151+
mkdir -p .tox/docs-spec
152+
cat > .tox/docs-spec/index.html << 'EOF'
153+
<!DOCTYPE html>
154+
<html>
155+
<head><title>Spec Placeholder</title></head>
156+
<body><h1>Spec documentation placeholder</h1><p>Full spec docs coming soon.</p></body>
157+
</html>
158+
EOF
150159
151160
- name: Stage artifact contents
152161
run: |
@@ -225,17 +234,20 @@ jobs:
225234

226235
steps:
227236
- name: Trigger aggregator workflow
228-
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
237+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
229238
with:
230-
token: ${{ secrets.STEEL_WEBSITE_DISPATCH }}
231-
repository: ethereum/steel-website
232-
event-type: docs-artifact-ready
233-
client-payload: |
234-
{
235-
"branch": "${{ needs.check-allowlist.outputs.branch }}",
236-
"sha": "${{ github.sha }}",
237-
"run_id": "${{ github.run_id }}"
238-
}
239+
github-token: ${{ secrets.STEEL_WEBSITE_DISPATCH }}
240+
script: |
241+
await github.rest.repos.createDispatchEvent({
242+
owner: 'ethereum',
243+
repo: 'steel-website',
244+
event_type: 'docs-artifact-ready',
245+
client_payload: {
246+
branch: '${{ needs.check-allowlist.outputs.branch }}',
247+
sha: '${{ github.sha }}',
248+
run_id: '${{ github.run_id }}'
249+
}
250+
});
239251
240252
- name: Log trigger status
241253
run: |

0 commit comments

Comments
 (0)