diff options
author | numToStr <vikasraj1911@gmail.com> | 2021-12-08 20:10:43 +0530 |
---|---|---|
committer | numToStr <vikasraj1911@gmail.com> | 2021-12-14 18:57:58 +0530 |
commit | 2eba02747382719059f6c6a4c96d95a154580276 (patch) | |
tree | 65ab1cc49840f6d0449712c8394239efab520231 /.github | |
parent | 072ec65b1d2be82c6d55f3ea2fe86214739e7e47 (diff) | |
download | lua-language-server-2eba02747382719059f6c6a4c96d95a154580276.zip |
feat: publish submodules package for homebrew
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f93a2db9..284745cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,9 +88,24 @@ jobs: esac; popd >/dev/null + # Packaging submodules for homebrew distribution + - name: Package submodules + id: submodules + if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.job.target == 'macos' }} + run: | + PKG_SUBMOD_NAME="${{ env.PROJECT }}-${{ steps.vars.outputs.PKG_VERSION }}-submodules.zip" + PKG_SUBMOD_PATH="${{ steps.vars.outputs.PKG_STAGING }}/$PKG_SUBMOD_NAME" + + zip -r $PKG_SUBMOD_PATH ./ -x "*.git*" -x "*.vscode*" -x "${{ env.BIN }}*" -x "${{ steps.vars.outputs.PKG_STAGING }}*" + + echo ::set-output name=PKG_SUBMOD_NAME::${PKG_SUBMOD_NAME} + echo ::set-output name=PKG_SUBMOD_PATH::${PKG_SUBMOD_PATH} + - name: Publish release assets uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: generate_release_notes: true - files: ${{ steps.vars.outputs.PKG_PATH }} + files: | + ${{ steps.vars.outputs.PKG_PATH }} + ${{ steps.submodules.outputs.PKG_SUBMOD_PATH }} |