forked from lunarmodules/ldoc
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 863 Bytes
/
doc.yml
File metadata and controls
38 lines (33 loc) · 863 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
# Based on https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
name: Build Docs
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Lua
uses: hishamhm/gh-actions-lua@master
with:
luaVersion: "5.5"
- name: Setup LuaRocks
uses: hishamhm/gh-actions-luarocks@master
with:
luaRocksVersion: "3.13.0"
- name: Setup dependencies
run: luarocks install --only-deps ldoc-dev-1.rockspec
- name: Build docs
run: make doc-site
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}