Skip to content

Merge pull request #133 from Hats-Protocol/funding-json-patch #34

Merge pull request #133 from Hats-Protocol/funding-json-patch

Merge pull request #133 from Hats-Protocol/funding-json-patch #34

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Build mdBook
run: forge doc --build
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/book
name: github-pages
retention-days: 1
deploy:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
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@v1