summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml17
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 }}