forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (49 loc) · 1.35 KB
/
page.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build and publish forkdiff github-pages
permissions:
contents: write
on:
push:
branches:
- portal
- gethintegration
jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout shisui origin
uses: actions/checkout@v3
with:
path: ./
ref: portal
fetch-depth: 1
- name: Checkout shisui
uses: actions/checkout@v3
with:
path: ./shisui
ref: gethintegration
fetch-depth: 1
- name: Checkout go-ethereum
uses: actions/checkout@v3
with:
repository: ethereum/go-ethereum
path: ./go-ethereum
ref: master
fetch-depth: 1
- name: Build forkdiff
uses: "docker://protolambda/forkdiff:latest"
with:
args: -repo=./shisui -fork=./fork.yaml -out=./index.html -upstream-repo=./go-ethereum
- 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