diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d55218c..9b0ab05 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,10 +2,10 @@ name: Build Docs on: pull_request: branches: - - master + - main push: branches: - - master + - main jobs: build: name: Build docs @@ -16,15 +16,16 @@ jobs: - name: Setup Lua uses: leafo/gh-actions-lua@v8 with: - luaVersion: 5.4 + luaVersion: 5.3 - name: Setup Lua Rocks uses: leafo/gh-actions-luarocks@v4 - - name: Setup dependencies - run: luarocks install --only-deps ldoc-dev-1.rockspec + - name: Install LDoc + run: luarocks install ldoc - name: Build docs run: make doc-site - name: Deploy - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3f5b2ed --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +.PHONY: doc-site + +doc-site: + ldoc .