diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index bcafd3f..a9dc02b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -12,7 +12,6 @@ concurrency: jobs: run: - needs: build runs-on: ubuntu-latest permissions: contents: write @@ -27,10 +26,14 @@ jobs: uses: lunarmodules/ldoc@v1.5.0 with: args: . + + - name: Copying files + run: | + sudo cp LICENSE doc/topics/LICENSE - name: Deploy documentation to gh-pages uses: peaceiris/actions-gh-pages@v4 - #if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/master' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./doc diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 59c84a2..6e300b4 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -2,8 +2,8 @@ name: Packaging Lua on: push: - # branches: - # - master + branches: + - master pull_request: workflow_dispatch: @@ -13,7 +13,6 @@ concurrency: jobs: run: - needs: build runs-on: ubuntu-latest permissions: contents: write @@ -26,19 +25,26 @@ jobs: - name: Preparing build directory run: | - mkdir -p build/lua + mkdir -p build/lua/doc + + - name: Build LDoc documentation + uses: lunarmodules/ldoc@v1.5.0 + with: + args: . - name: Copying files run: | cp readme.md build/readme.md cp LICENSE build/LICENSE - cp lua/*.lua build/lua/ + cp demo.lua build/demo.lua + cp -R doc/ build/doc/ + cp LICENSE build/doc/topics/LICENSE - name: Upload artifact (socket.7z) uses: actions/upload-artifact@v4 - #if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/master' }} with: - name: sleep.7z + name: LuaJIT-Sleep path: build/ compression-level: 0 retention-days: 30 diff --git a/readme.md b/readme.md index f769762..e21396e 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,8 @@ # LuaJIT - Sleep Pure LuaJIT bindings and wrappers for native sleep functions on Win32 and Linux. -**📢 This is library is in low maintenance mode** \ -I consider it feature-complete, and unless a bug is found, I don't plan on updating it. +> **📢 This is library is in low maintenance mode** \ + I consider it feature-complete, and unless a bug is found, I don't plan on updating it. ## Features