Skip to content

Commit ed386bd

Browse files
committed
feat: upload runtime files in workflow artifact
1 parent 53e6e99 commit ed386bd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ jobs:
6868
- uses: actions/upload-artifact@v2
6969
with:
7070
name: ${{ steps.vars.outputs.PKG_BASENAME }}
71-
path: ${{ env.BIN_DIR }}
71+
path: |
72+
${{ env.BIN_DIR }}
73+
main.lua
74+
debugger.lua
75+
LICENSE
76+
changelog.md
77+
locale
78+
meta
79+
script
7280
7381
- name: Package tarballs
7482
if: startsWith(github.ref, 'refs/tags/')
@@ -81,7 +89,7 @@ jobs:
8189
mkdir -p ${STAGING}
8290
8391
# Copying binary and runtime files to staging area
84-
cp -r main.lua debugger.lua locale meta script ${{ env.BIN_DIR }} ${STAGING}
92+
cp -r main.lua debugger.lua LICENSE changelog.md locale meta script ${{ env.BIN_DIR }} ${STAGING}
8593
8694
# Creating release assets
8795
pushd "${STAGING}/" >/dev/null
@@ -95,7 +103,7 @@ jobs:
95103
# Packaging submodules for homebrew distribution
96104
- name: Package submodules
97105
id: submodules
98-
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.job.target == 'macos' }}
106+
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.job.target == 'darwin' }}
99107
run: |
100108
STAGING=${{ steps.vars.outputs.PKG_STAGING }}
101109
PKG_SUBMOD_NAME="${{ env.PROJECT }}-${{ steps.vars.outputs.PKG_VERSION }}-submodules.zip"

0 commit comments

Comments
 (0)