-
Notifications
You must be signed in to change notification settings - Fork 141
38 lines (31 loc) · 947 Bytes
/
docs-deploy.yml
File metadata and controls
38 lines (31 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy Docs
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *' # daily (UTC 10:00)
permissions:
contents: write
jobs:
deploy-docs:
runs-on: ubuntu-latest
if: github.repository_owner == 'leanprover-community'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Lean
uses: leanprover/lean-action@v1
with:
test: false
lint: false
use-github-cache: true
- name: Build Docs
working-directory: docs
run: lake build --keep-toolchain -q Batteries:docs
- name: Deploy Docs
run: |
git config user.name "leanprover-community-batteries-bot"
git config user.email "leanprover-community-batteries-bot@users.noreply.github.com"
git checkout -b docs
git add docs/doc docs/doc-data
git commit -m "chore: generate docs"
git push origin docs --force