diff --git a/.github/workflows/reference.yml b/.github/workflows/reference.yml index cd61ab9..ac55ce8 100644 --- a/.github/workflows/reference.yml +++ b/.github/workflows/reference.yml @@ -1,31 +1,29 @@ -name: Build Reference +name: Build Reference on: push: - branches: - - master + tags: + - 'v[0-9]*' jobs: build: - name: Build + name: Build Reference runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - name: Setup Lua uses: leafo/gh-actions-lua@v8 with: luaVersion: 5.4 - name: Setup Lua Rocks uses: leafo/gh-actions-luarocks@v4 - - name: Setup LDoc dependencies + - name: Setup dependencies run: luarocks install --only-deps https://raw.githubusercontent.com/lunarmodules/LDoc/master/ldoc-scm-3.rockspec - name: Setup LDoc - run: git clone --single-branch --branch=custom https://github.com/AntumDeluge/ldoc.git .ldoc/ldoc && chmod +x .ldoc/ldoc/ldoc.lua - - name: Generate docs - run: chmod +x .ldoc/gendoc.sh && ./.ldoc/gendoc.sh + run: git clone --single-branch --branch=custom https://github.com/AntumDeluge/LDoc.git ldoc + - name: Checkout & Build Docs + run: git clone https://github.com/AntumMT/mod-cleaner.git cleaner && cd cleaner && chmod +x .ldoc/build_versioned_docs.sh && ./.ldoc/build_versioned_docs.sh - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/ + publish_dir: cleaner/docs/ diff --git a/README.md b/README.md index 9900b9b..fc2276a 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ cleaner.unsafe - [![ContentDB](https://content.minetest.net/packages/AntumDeluge/cleaner/shields/title/)][ContentDB] - [Forum](https://forum.minetest.net/viewtopic.php?t=18381) - [Git repo](https://github.com/AntumMT/mod-cleaner) -- [Reference](https://antummt.github.io/mod-cleaner/reference) +- [Reference](https://antummt.github.io/mod-cleaner/reference/latest/) - [Changelog](changelog.txt) - [TODO](TODO.txt)