mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-22 03:28:25 +00:00
37 lines
1017 B
YAML
37 lines
1017 B
YAML
|
name: Build and publish forkdiff github-pages
|
||
|
permissions:
|
||
|
contents: write
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- optimism-history
|
||
|
jobs:
|
||
|
deploy:
|
||
|
concurrency: ci-${{ github.ref }}
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 1000 # make sure to fetch the old commit we diff against
|
||
|
|
||
|
- 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" == "ethereum-optimism/op-geth" ]; then
|
||
|
echo "op-geth.optimism.io" > tmp/pages/CNAME
|
||
|
fi;
|
||
|
|
||
|
- name: Deploy
|
||
|
uses: JamesIves/github-pages-deploy-action@v4
|
||
|
with:
|
||
|
folder: tmp/pages
|
||
|
clean: true
|