Skip to content

Commit 7121e66

Browse files
Build and deploy API-docs in CI (#28)
* build API docs * only build API docs on the main branch
1 parent 57de60e commit 7121e66

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/lean.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ on:
22
push:
33
pull_request:
44

5+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
6+
permissions:
7+
contents: read # Read access to repository contents
8+
pages: write # Write access to GitHub Pages
9+
id-token: write # Write access to ID tokens
10+
511
name: build
612

713
jobs:
@@ -14,3 +20,7 @@ jobs:
1420
- uses: leanprover/lean-action@v1
1521
with:
1622
check-reservoir-eligibility: true
23+
24+
- name: Build and Deploy API-DOCS
25+
if: github.ref == 'refs/heads/main'
26+
uses: leanprover-community/docgen-action@v1

0 commit comments

Comments
 (0)