-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 1.31 KB
/
Docs.yml
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
55
56
57
58
59
60
name: Documentation
on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
github_token: ${{ secrets.WORKFLOW_TOKEN }}
- id: Docs
uses: ./.github/actions/tangle
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.1.693
clj-kondo: 2022.05.31
- name: Build
shell: bash
run: |
cd babel
npm i
clojure -M:build
- name: Build examples
shell: bash
run: |
cd babel/examples
npm i
clojure -M:build
- name: Remove everything but the documentation
shell: bash
run: |
sudo rm -fr *.org LICENSE babel .gitignore
sudo mv docs/* ./
sudo rm -fr docs
- name: Publish to Github pages
shell: bash
run: |
git config --global user.name documentation-action
git config --global user.email [email protected]
git add -A && git commit -m "Documentation"
git push origin HEAD:refs/heads/gh-pages --force