summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authornumToStr <vikasraj1911@gmail.com>2021-12-07 22:47:13 +0530
committernumToStr <vikasraj1911@gmail.com>2021-12-14 18:57:58 +0530
commited0ae73c8bd0844dbccb1efaf922ab697e959e2a (patch)
tree90d9360589e9e80b17b41bc97e46aef72b5e129d /.github
parent9bc668225e5c866b8cccf275ba71c9e705768ea3 (diff)
downloadlua-language-server-ed0ae73c8bd0844dbccb1efaf922ab697e959e2a.zip
feat: add runtime files to release assets
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cc180f9d..fa7de717 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,5 @@
name: build
+
on: push
env:
@@ -18,7 +19,6 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
- ref: refs/heads/master
submodules: recursive
- uses: actboy168/setup-luamake@master
@@ -35,9 +35,18 @@ jobs:
id: package
shell: bash
run: |
+ # Some variables
PKG_BASENAME="${{ env.PROJECT }}-${{ matrix.job.target }}"
+ PKG_STAGING="ci_staging/${PKG_BASENAME}"
+
+ # Making the staging area
+ mkdir -p ${PKG_STAGING}
+
+ # Copying binary and runtime files to staging area
+ cp -r main.lua debugger.lua locale meta script ${{ env.BIN }} ${PKG_STAGING}
- pushd "${{ env.BIN }}/" >/dev/null
+ # Creating release assets
+ pushd "${PKG_STAGING}/" >/dev/null
case "${{ matrix.job.target }}" in
windows)
PKG_NAME="${PKG_BASENAME}.zip"
@@ -50,8 +59,8 @@ jobs:
esac;
popd >/dev/null
- echo ::set-output name=PKG_PATH::"${{ env.BIN }}/${PKG_NAME}"
echo ::set-output name=PKG_NAME::${PKG_NAME}
+ echo ::set-output name=PKG_PATH::"${PKG_STAGING}/${PKG_NAME}"
- name: Publish release assets
uses: softprops/action-gh-release@v1