Update LUA new-tag #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and release Lua NGINX module | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "lua-*" | |
| jobs: | |
| build-lua: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v3 | |
| - name: Build Lua module | |
| run: | | |
| docker build -f build/Dockerfile.luam -t lua-builder . | |
| docker create --name extract lua-builder | |
| docker cp extract:/usr/src/nginx-1.27.4/objs/ndk_http_module.so . | |
| docker cp extract:/usr/src/nginx-1.27.4/objs/ngx_http_lua_module.so . | |
| docker rm extract | |
| - name: Upload Lua modules to GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| ./ndk_http_module.so | |
| ./ngx_http_lua_module.so | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |