diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index f2c9e97c..11218b02 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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 @@ -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