git-subtree-dir: users/daniel/configs/system/nvim/nvim git-subtree-split: e088bce2bd90c0b5c35d13a8615a55455b96294d
35 lines
779 B
YAML
35 lines
779 B
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Setup Lua
|
|
uses: leafo/gh-actions-lua@v8
|
|
with:
|
|
luaVersion: 5.4
|
|
- name: Install LDoc
|
|
uses: leafo/gh-actions-luarocks@v4
|
|
- name: Setup dependencies
|
|
run: luarocks install ldoc
|
|
- name: Build Docs
|
|
run: |
|
|
ldoc .
|
|
- name: Set CNAME
|
|
run: |
|
|
echo "api.astronvim.com" > docs/CNAME
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs
|