From 3b93df03ef87c6accebfaaf5233bd813665329d0 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 10 Jul 2022 17:42:32 +0200 Subject: [PATCH] ci(release/pre-release): copy only lua lib files --- .github/workflows/pre-release.yml | 6 ++++-- .github/workflows/release.yml | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 3b34c35..dd6e3ca 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -32,10 +32,12 @@ jobs: run: | mkdir -p ./temp/oxmysql mkdir -p ./temp/oxmysql/ui/ + mkdir -p ./temp/oxmysql/lib/ cp ./{LICENSE,README.md,fxmanifest.lua,ui.lua} ./temp/oxmysql - cp -r ./{lib,dist} ./temp/oxmysql + cp ./lib/{MySQL.lua,define.lua} ./temp/oxmysql/lib + cp -r ./dist ./temp/oxmysql cp -r ./ui/build ./temp/oxmysql/ui/ - cd ./temp && zip -r ../oxmysql-${{ github.event.inputs.tag }}.zip ./oxmysql + cd ./temp && zip -r ../oxmysql.zip ./oxmysql - name: Create Release uses: 'marvinpinto/action-automatic-releases@v1.2.1' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29239b4..7d311e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,8 +40,10 @@ jobs: run: | mkdir -p ./temp/oxmysql mkdir -p ./temp/oxmysql/ui/ + mkdir -p ./temp/oxmysql/lib/ cp ./{LICENSE,README.md,fxmanifest.lua,ui.lua} ./temp/oxmysql - cp -r ./{lib,dist} ./temp/oxmysql + cp ./lib/{MySQL.lua,define.lua} ./temp/oxmysql/lib + cp -r ./dist ./temp/oxmysql cp -r ./ui/build ./temp/oxmysql/ui/ cd ./temp && zip -r ../oxmysql.zip ./oxmysql