Skip to content

Commit

Permalink
Updated LDoc config
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne committed Aug 13, 2023
1 parent ffdbaf9 commit a52ea2a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ldoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,24 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Lua
uses: leafo/gh-actions-lua@v8
with:
luaVersion: "5.1"

- name: Install LDoc
run: |
sudo apt-get install luarocks
sudo luarocks install ldoc
- name: Setup Lua Rocks
uses: leafo/gh-actions-luarocks@v4

- name: Clean docs directory
run: rm -rf ./docs
- name: Setup dependencies
run: luarocks install ldoc

- name: Generate Documentation
run: ldoc -d ./docs .
- name: Build docs
run: ldoc .

- name: Deploy to GitHub Pages
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a52ea2a

Please sign in to comment.