Skip to content

Commit b5c8f8e

Browse files
authored
Merge pull request #237 from thinkAfCod/add_diff
feat: add forkdiff
2 parents 72186c2 + 281f6f3 commit b5c8f8e

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/page.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and publish forkdiff github-pages
2+
permissions:
3+
contents: write
4+
on:
5+
push:
6+
branches:
7+
- portal
8+
jobs:
9+
deploy:
10+
concurrency: ci-${{ github.ref }}
11+
depends-on: copy-and-clone
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout shisui
15+
uses: actions/checkout@v3
16+
with:
17+
path: /github/workspace/shisui
18+
fetch-depth: 1
19+
- name: Checkout go-ethereum
20+
uses: actions/checkout@v3
21+
with:
22+
repository: ethereum/go-ethereum
23+
path: /github/workspace/go-ethereum
24+
ref: master
25+
fetch-depth: 1
26+
- name: Build forkdiff
27+
uses: "docker://protolambda/forkdiff:latest"
28+
with:
29+
args: -repo=/github/workspace -fork=/github/workspace/fork.yaml -out=/github/workspace/index.html
30+
31+
- name: Build pages
32+
run: |
33+
mkdir -p tmp/pages
34+
mv index.html tmp/pages/index.html
35+
touch tmp/pages/.nojekyll
36+
if [ "$GITHUB_REPOSITORY" == "optimism-java/shisui" ]; then
37+
echo "shisui.github.io" > tmp/pages/CNAME
38+
fi;
39+
40+
- name: Deploy
41+
uses: JamesIves/github-pages-deploy-action@v4
42+
with:
43+
folder: tmp/pages
44+
clean: true

fork.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
title: "op-besu" # Define the HTML page title
2+
footer: | # define the footer with markdown
3+
Portal Network Implementation. Fork-diff overview of [shisui](https://github.com/optimism-java/shisui), a fork of [geth](https://github.com/ethereum/go-ethereum).
4+
base:
5+
name: ethereum/go-ethereum
6+
url: https://github.com/ethereum/go-ethereum
7+
ref: refs/heads/master
8+
fork:
9+
name: optimism-java/shisui
10+
url: https://github.com/optimism-java/shisui
11+
ref: refs/heads/portal
12+
def:
13+
title: "shisui"
14+
description: | # description in markdown
15+
Portal Network Implementation. This is an overview of the changes in [shisui](https://github.com/optimism-java/shisui), a fork of [geth](https://github.com/ethereum/go-ethereum).
16+
17+
18+
19+
20+
# files can be ignored globally, these will be listed in a separate grayed-out section,
21+
# and do not count towards the total line count.
22+
ignore:
23+
- "*.sum"
24+
- ".gitignore"
25+
- "fork.yaml"
26+
- "README.md"

0 commit comments

Comments
 (0)