-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (45 loc) · 1.31 KB
/
release.yml
File metadata and controls
54 lines (45 loc) · 1.31 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Lean
uses: leanprover/lean-action@v1
with:
build: false
test: false
lint: false
use-github-cache: true
- name: Build Docs
working-directory: docs
run: lake build --keep-toolchain UnicodeBasic:docs UnicodeData:docs
- name: Compress Docs
working-directory: docs
env:
TAG_NAME: ${{ github.ref_name }}
run: |
tar -czf docs-${TAG_NAME}.tar.gz doc doc-data
zip -rq docs-${TAG_NAME}.zip doc doc-data
- name: Release
uses: softprops/action-gh-release@v3
with:
files: |
docs/docs-${{ github.ref_name }}.tar.gz
docs/docs-${{ github.ref_name }}.zip
fail_on_unmatched_files: true
- name: Deploy Docs
run: |
git config user.name 'Unicode Basic Bot'
git config user.email 'unicode-basic-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