Skip to content

Commit

Permalink
add page.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod committed Dec 9, 2024
1 parent cfe2777 commit 61a8ca1
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 61a8ca1

Please sign in to comment.