File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11name : build
2+
23on : push
34
45env :
1819 steps :
1920 - uses : actions/checkout@v2
2021 with :
21- ref : refs/heads/master
2222 submodules : recursive
2323
2424 - uses : actboy168/setup-luamake@master
3535 id : package
3636 shell : bash
3737 run : |
38+ # Some variables
3839 PKG_BASENAME="${{ env.PROJECT }}-${{ matrix.job.target }}"
40+ PKG_STAGING="ci_staging/${PKG_BASENAME}"
41+
42+ # Making the staging area
43+ mkdir -p ${PKG_STAGING}
44+
45+ # Copying binary and runtime files to staging area
46+ cp -r main.lua debugger.lua locale meta script ${{ env.BIN }} ${PKG_STAGING}
3947
40- pushd "${{ env.BIN }}/" >/dev/null
48+ # Creating release assets
49+ pushd "${PKG_STAGING}/" >/dev/null
4150 case "${{ matrix.job.target }}" in
4251 windows)
4352 PKG_NAME="${PKG_BASENAME}.zip"
5059 esac;
5160 popd >/dev/null
5261
53- echo ::set-output name=PKG_PATH::"${{ env.BIN }}/${PKG_NAME}"
5462 echo ::set-output name=PKG_NAME::${PKG_NAME}
63+ echo ::set-output name=PKG_PATH::"${PKG_STAGING}/${PKG_NAME}"
5564
5665 - name : Publish release assets
5766 uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments