Skip to content

Commit

Permalink
Merge pull request #237 from thinkAfCod/add_diff
Browse files Browse the repository at this point in the history
feat: add forkdiff
  • Loading branch information
thinkAfCod authored Dec 8, 2024
2 parents 72186c2 + 281f6f3 commit b5c8f8e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and publish forkdiff github-pages
permissions:
contents: write
on:
push:
branches:
- portal
jobs:
deploy:
concurrency: ci-${{ github.ref }}
depends-on: copy-and-clone
runs-on: ubuntu-latest
steps:
- name: Checkout shisui
uses: actions/checkout@v3
with:
path: /github/workspace/shisui
fetch-depth: 1
- name: Checkout go-ethereum
uses: actions/checkout@v3
with:
repository: ethereum/go-ethereum
path: /github/workspace/go-ethereum
ref: master
fetch-depth: 1
- name: Build forkdiff
uses: "docker://protolambda/forkdiff:latest"
with:
args: -repo=/github/workspace -fork=/github/workspace/fork.yaml -out=/github/workspace/index.html

- name: Build pages
run: |
mkdir -p tmp/pages
mv index.html tmp/pages/index.html
touch tmp/pages/.nojekyll
if [ "$GITHUB_REPOSITORY" == "optimism-java/shisui" ]; then
echo "shisui.github.io" > tmp/pages/CNAME
fi;
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: tmp/pages
clean: true
26 changes: 26 additions & 0 deletions fork.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: "op-besu" # Define the HTML page title
footer: | # define the footer with markdown
Portal Network Implementation. Fork-diff overview of [shisui](https://github.com/optimism-java/shisui), a fork of [geth](https://github.com/ethereum/go-ethereum).
base:
name: ethereum/go-ethereum
url: https://github.com/ethereum/go-ethereum
ref: refs/heads/master
fork:
name: optimism-java/shisui
url: https://github.com/optimism-java/shisui
ref: refs/heads/portal
def:
title: "shisui"
description: | # description in markdown
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).
# files can be ignored globally, these will be listed in a separate grayed-out section,
# and do not count towards the total line count.
ignore:
- "*.sum"
- ".gitignore"
- "fork.yaml"
- "README.md"

0 comments on commit b5c8f8e

Please sign in to comment.