Skip to content

Commit

Permalink
Merge pull request #14 from mjdemedeiros/doc-gen4-pages
Browse files Browse the repository at this point in the history
Update workflow to build with doc-gen4
  • Loading branch information
mjdemedeiros authored May 29, 2024
2 parents fa98b7e + 8308529 commit d00d06c
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Build and deploy documentation to Pages

on:
# Runs on pushes targeting the default branch
Expand All @@ -22,22 +21,36 @@ concurrency:
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build:
name: Build SampCert Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install elan
run: |
set -o pipefail
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.2/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz
./elan-init -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Setup Pages
uses: actions/configure-pages@v5
- uses: actions/checkout@v4
- name: build std
id: build
run: lake build -Kwerror -Kenv=doc SampCert:docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
path: "./.lake/build/doc"

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 d00d06c

Please sign in to comment.