diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 804a73b..357b938 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -35,7 +35,9 @@ jobs: run: | find src -type f -name "*.lua" | while read file; do filename=$(basename "$file") - lua tools/markdown.lua "$file" "build_docs/docs/references/${filename%.lua}.md" + if [ "$filename" != "LuaLS.lua" ]; then + lua tools/markdown.lua "$file" "build_docs/docs/references/${filename%.lua}.md" + fi done - name: Deploy if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..502dc62 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Create Release + +on: + push: + paths: + - 'version' + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Get Version + id: version + run: echo "version=$(cat version)" >> $GITHUB_OUTPUT + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ steps.version.outputs.version }} + release_name: Release v${{ steps.version.outputs.version }} + draft: false + prerelease: false + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./release/basalt.lua + asset_name: basalt.lua + asset_content_type: application/x-lua diff --git a/minify.yml b/minify.yml index 1918cae..2d242e6 100644 --- a/minify.yml +++ b/minify.yml @@ -44,7 +44,7 @@ jobs: local attr = lfs.attributes(fullPath) if attr.mode == "directory" then scanDir(fullPath, baseDir .. file .. "/") - elseif file:match("%.lua$") then + elseif file:match("%.lua$") and file ~= "LuaLS.lua" then table.insert(files, { path = baseDir .. file, fullPath = fullPath diff --git a/version b/version new file mode 100644 index 0000000..8a9ecc2 --- /dev/null +++ b/version @@ -0,0 +1 @@ +0.0.1 \ No newline at end of file