File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 33
44env :
55 PROJECT : lua-language-server
6+ TEMP : ci_temp
67 BIN : bin
78
89jobs :
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"
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
You can’t perform that action at this time.
0 commit comments