Skip to content

Commit

Permalink
feat: Fork Diff Summary - remove index.html and add CI action for dep…
Browse files Browse the repository at this point in the history
…loying fork summaries
  • Loading branch information
ethenotethan committed Jan 8, 2025
1 parent e2f5286 commit d39d46d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: forge test
tests:
name: Contract tests
runs-on: ubuntu-8
runs-on: ubuntu-latest
defaults:
run:
shell: bash
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build, publish, & host forkdiff github-pages
permissions:
contents: read
pages: write
id-token: write
on:
workflow_dispatch:
push:
branches:
- eigenda

jobs:
build:
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:0.1.0"
with:
args: -repo=/github/workspace -fork=/github/workspace/fork.yaml -out=/github/workspace/index.html

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d39d46d

Please sign in to comment.