Skip to content

Commit 85fc8a2

Browse files
committed
feat: add runtime files to release assets
1 parent 0ae2d1d commit 85fc8a2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on: push
33

44
env:
55
PROJECT: lua-language-server
6+
TEMP: ci_temp
67
BIN: bin
78

89
jobs:
@@ -35,9 +36,18 @@ jobs:
3536
id: package
3637
shell: bash
3738
run: |
39+
# Some variables
3840
PKG_BASENAME="${{ env.PROJECT }}-${{ matrix.job.target }}"
41+
STAGING="${{ env.TEMP }}/${PKG_BASENAME}"
3942
40-
pushd "${{ env.BIN }}/" >/dev/null
43+
# Making a staging directory
44+
mkdir -p ${STAGING}
45+
46+
# Copying binary and runtime files to staging area
47+
cp -r main.lua debugger.lua locale meta script ${{ env.BIN }} ${STAGING}
48+
49+
# Creating release assets
50+
pushd "${STAGING}/" >/dev/null
4151
case "${{ matrix.job.target }}" in
4252
windows)
4353
PKG_NAME="${PKG_BASENAME}.zip"
@@ -50,8 +60,8 @@ jobs:
5060
esac;
5161
popd >/dev/null
5262
53-
echo ::set-output name=PKG_PATH::"${{ env.BIN }}/${PKG_NAME}"
5463
echo ::set-output name=PKG_NAME::${PKG_NAME}
64+
echo ::set-output name=PKG_PATH::"${STAGING}/${PKG_NAME}"
5565
5666
- name: Publish release assets
5767
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)