Skip to content

Commit ed0ae73

Browse files
committed
feat: add runtime files to release assets
1 parent 9bc6682 commit ed0ae73

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: build
2+
23
on: push
34

45
env:
@@ -18,7 +19,6 @@ jobs:
1819
steps:
1920
- uses: actions/checkout@v2
2021
with:
21-
ref: refs/heads/master
2222
submodules: recursive
2323

2424
- uses: actboy168/setup-luamake@master
@@ -35,9 +35,18 @@ jobs:
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"
@@ -50,8 +59,8 @@ jobs:
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

0 commit comments

Comments
 (0)